[osflash] use embeded fonts with SWFmill

Nathanael Drouard ndrouard at gmail.com
Fri Nov 25 10:46:47 EST 2005


Yeah ! I changed the order of instructions as you say and it works :)
Thanks!

I don't know where I saw defaultTextFormat, maybe in AS3.

So, if someone have the same problem and search in this mailing list, here
is the good code :

_root.createTextField("test", 1, 20, 20, 100, 20);
 var tf:TextField = _root.test;
tf.embedFonts = true;

var format:TextFormat = new TextFormat();
format.font = "hoogeFont";
format.size = 8;
format.color = 0x000000;

tf.text = "Hello World !";
tf.setTextFormat(format);


Thanks again.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20051125/48a8850f/attachment-0001.htm


More information about the osflash mailing list