On Flash/Air targets Haxe is utilizing the flash.text.Font
API - which did not have a
fromBytes()
method. That is simply because dynamic loading of a font file on these
targets does require the actual font file embedded in a .swf file. You can’t just
use the binary data of a .ttf file.
Well, I don’t quite like self-promotion but if all you want to do is display dynamic
text using a font obtained from a .ttf file, I’d recommend using my Stroked TextField
library and simply don’t give your text an outline color.
1 Like