Return to Snippet

Revision: 47421
at July 23, 2011 05:32 by adrianparr


Updated Code
import flash.text.Font;

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

Revision: 47420
at June 7, 2011 23:43 by adrianparr


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

Initial Tags
array

Initial Language
ActionScript 3