/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public function showEmbeddedFonts():void { trace("========Embedded Fonts========"); var fonts:Array = Font.enumerateFonts(); fonts.sortOn("fontName", Array.CASEINSENSITIVE); for (var i:int = 0; i < fonts.length; i++) { trace(fonts[i].fontName + ", " + fonts[i].fontStyle); } }