Posted By

abbey on 02/21/10


Tagged


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

arpo
tspitzr
Leang


AS3: Show Embedded Fonts function


 / Published in: ActionScript 3
 

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

Report this snippet  

You need to login to post a comment.