Posted By

GunnarHKarlsson on 09/01/11


Tagged

style embed text font ui AIR skin look fonts android Skinning


Versions (?)

Embed font in air for android


 / Published in: ActionScript 3
 

  1. /*Main*/
  2.  
  3. <fx:Script>
  4. <![CDATA[
  5.  
  6. [Embed( source="/assets/fonts/Font04b03.swf", fontFamily="04b03")]
  7. public static var titleFont:Class;
  8. ]]>
  9. </fx:Script>
  10. /* CSS file */
  11.  
  12. @namespace s "library://ns.adobe.com/flex/spark";
  13.  
  14. s|ActionBar #titleDisplay
  15. {
  16. color: #ffffff;
  17. fontSize: 20;
  18. fontFamily: "04b03";
  19. fontWeight: "Bold";
  20. }

Report this snippet  

You need to login to post a comment.