How to deal with Lucida Grande Regular & Lucida Grande Bold font in ActionScript3

To embed Lucida Grande Regular &/or Lucida Grande Bold font in ActionScript3 you need to do next: …. …. …. // declaring fonts [Embed(source="fonts/Lucida_Grande_Regular.ttf", fontFamily="Lucida_Grande_Regular", fontWeight="normal", mimeType="application/x-font-truetype", embedAsCFF="false")] private var LucidaGrandeRegular:Class; [Embed(source="fonts/Lucida_Grande_Bold.ttf", fontFamily="Lucida_Grande_Bold", fontWeight="normal", mimeType="application/x-font-truetype", embedAsCFF="false")] private var LucidaGrandeBold:Class; …. …. …. …. // For Regular Font // Create TextFormat Read more…

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…