package{ import flash.display.Sprite; import flash.text.*; public class Main extends Sprite{ public function Main(){ var fonts:Array = Font.enumerateFonts(true); fonts.sortOn("fontName", Array.CASEINSENSITIVE); for (var i:int = 0; i < fonts.length; i++) { if (fonts[i].fontType == FontType.DEVICE) { trace(fonts[i].fontName + ", " + fonts[i].fontStyle); } }
} } }
Related Scripts with Example Source Code in same category :