use this:
<assets path="assets/fonts" rename="fonts" />
TextFormat(Assets.getFont("fonts/Snowstorm.otf").fontName
but dont work on flash target…
use this:
<assets path="assets/fonts" rename="fonts" />
TextFormat(Assets.getFont("fonts/Snowstorm.otf").fontName
but dont work on flash target…
If you trace the fontName, what do you get?
got this “Snowstorm”, my font is Snowstorm.otf
You get “Snowstorm” in both flash and neko or only neko?
both trace gets “Snowstorm”
Did you set textField.embedFonts = true
?
when _textField.embedFonts = true;
the textField does not display in flash; works well/same in neko
Odd, but it’s still a step in the right direction. Flash won’t display embedded fonts without embedFonts = true
, even if you do everything else right.
Another thing to check is whether the AddingText sample project works. Run openfl create AddingText
, then compile that project for Flash. If it works, swap in Snowstorm and see if it still works.