Return to Snippet

Revision: 24113
at February 21, 2010 16:35 by abbey


Initial Code
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);
        }
 }

Initial URL

                                

Initial Description

                                

Initial Title
AS3: Show Embedded Fonts function

Initial Tags

                                

Initial Language
ActionScript 3