Posted By

adrianparr on 06/07/11


Tagged

array font trace as3 fonts embedded enumerateFonts


Versions (?)

AS3 Show Embedded Fonts


 / Published in: ActionScript 3
 

  1. import flash.text.Font;
  2.  
  3. public function showEmbeddedFonts():void {
  4. trace("========Embedded Fonts========");
  5. var fonts:Array = Font.enumerateFonts();
  6. fonts.sortOn("fontName", Array.CASEINSENSITIVE);
  7. for (var i:int = 0; i < fonts.length; i++) {
  8. trace(fonts[i].fontName + ", " + fonts[i].fontStyle);
  9. }
  10. }

Report this snippet  

You need to login to post a comment.