List registered font files


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. var fonts:Array = Font.enumerateFonts();
  2. var font:Font;
  3. for(var i:int; i<fonts.length;i++)
  4. {
  5. font = fonts[i];
  6. trace("name : "+font.fontName);
  7. trace("style : "+font.fontStyle);
  8. trace("type : "+font.fontType);
  9. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.