How to use embed font in your ActionScript Flash application

To use embed font in your Flash application you need to do next: 1. Declare font and show TTF font location [Embed(source="../../../../../../assets/fonts/MyFont.ttf", fontFamily="MyFont",fontWeight="normal", mimeType="application/x-font-truetype", embedAsCFF="false")] private var MyFont:Class; take care about embedAsCFF=”false”. This is important part of code. 2. Create TextFormat object and use embed font it in. var textFormat:TextFormat Read more…