Flex in IntelliJ: Embeded fonts not showing after compile
I'm trying to set up an old Flex project in IntelliJ IDEA but are having a problem with all embeded fonts. The font is installed on my Windows 7 PC and are also located in the folder fonts in the directory where my ActionScript sources are located. I'm using the SDK compiler config from flex_sdk_4.1 with additional option of -static-link-runtime-shared-libraries=true.
Code example:
{
[Embed(source="fonts/ORG_V01_.TTF", fontName="Org_v01", mimeType='application/x-font-truetype')]
public var Org_v01:Class;
var format:TextFormat = new TextFormat();
format.font = "Org_v01";
format.color = 0x000000;
format.开发者_如何学运维size = 8;
label = new TextField();
label.defaultTextFormat = format;
label.embedFonts = true;
label.text = "LOADING...";
addChild(label);
}
Needed to set embedAsCFF='false'
精彩评论