Hey guys,
Probably just a quick fix here, but this embedFonts is driving me nuts. When embedFonts is set to true the font disappears, however when it’s not set it’s visible. It’s a bitmap font too (Everyday).
The code is as follows atm:
var label:TextField = new TextField();
label.embedFonts = true;
label.autoSize = TextFieldAutoSize.LEFT;
label.antiAliasType = AntiAliasType.ADVANCED;
label.selectable = false;
label.defaultTextFormat = formatText();
the formatText() function is as follows:
private function formatText():TextFormat
{
var format:TextFormat = new TextFormat();
format.font = "Everyday";
format.color = 0x000000;
format.size = 10;
format.bold = false;
return format;
}
and I’m embedding the font with
[Embed(source="Everyday.ttf", fontFamily="Everyday")]
at the start of the class
Any tips?