Skip to content

Instantly share code, notes, and snippets.

@lukesh
Created July 17, 2009 19:28
Show Gist options
  • Save lukesh/149236 to your computer and use it in GitHub Desktop.
Save lukesh/149236 to your computer and use it in GitHub Desktop.
private function listFonts():void {
var fontArray:Array = Font.enumerateFonts(false);
for(var i:int = 0; i < fontArray.length; i++) {
var thisFont:Font = fontArray[i];
if (thisFont.fontType == "embedded") {
ta1.text += "FONT " + i + ":: name: " + thisFont.fontName + "; typeface: " +
thisFont.fontStyle + "; type: " + thisFont.fontType + "\n";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment