PDA

View Full Version : font embedding problem



Alber Kidd
March 20th, 2009, 05:39 AM
Hi I am looking at embedding fonts in as3. This techinique (http://www.tink.ws/blog/embedding-fonts-in-as3/) looks gogod, however

(i) I do not have the flex compiler.

(ii) the font is a not a TTF

I want to embed as a font in flash library and then use it in my extended TextFied Class (full example http://www.kirupa.com/forum/showthread.php?t=322586).

I actually got it working the document class but not in the extended TextField. Any help would be much appreciated.

.ral:cr
March 20th, 2009, 07:42 AM
try to set the format also, not only the defaultTextFormat.
and be shure you have "swissHeavy" as class for the font.

Alber Kidd
March 20th, 2009, 09:29 AM
try to set the format also, not only the defaultTextFormat.
and be shure you have "swissHeavy" as class for the font.


Nice work

this.setTextFormat (style2);


No idea why defaultTextFormat works in the document class and not in an extended class!!