I’ve been trying to embed a font for a long time. Here’s what i do :
// somewhere in the Main class
[Embed(source = '../slike/arial.ttf', fontName='Arial')]
private var Font:Class;
// in the constructor of Main class
var format:TextFormat = new TextFormat();
format.font = 'Arial';
// format.color = 0xFF0000;
format.size = 100;
var tmp:TextField = new TextField();
tmp.embedFonts = true;
tmp.autoSize = TextFieldAutoSize.LEFT;
tmp.defaultTextFormat = format;
tmp.selectable = false;
tmp.text = 'Neki tekst';
addChild(tmp);
and i don’t see any text whatsoever. If i set embedFonts to false, i can see text…:mummy: help!