Hi,
I’ve seen it seems to be a recurring problem to embed fonts, but I haven’t found a solution that works for me so far…
Here is my embed, at the start of my Class :
[Embed(source="fonts/08_Underground.TTF",fontName="huit",mimeType = 'application/x-font')]
public static var font:Class;
Then, in my constructor :
tf=new TextFormat();
tf.color="0x557722";
tf.size=33;
tf.font="huit";
var txt:TextField=new TextField();
txt.width=500;
txt.embedFonts=true;
tf.font="huit";
txt.setTextFormat(tf);
txt.text="je teste...je teste...je teste...je teste...je teste...je teste...je teste...je teste...je teste...je teste...";
txt.y=10;
this._trigger.addChild(txt);
But nothing shows up. If I comment the embedFonts line, text does show up, but of course the font is not the one I wanted.
If anyone can help ?
Thanks,
achim