user689751
user689751

Reputation:

AS3 Embedded Fonts list and their names

How to get a list of all embedded fonts with their names using AS3.

Upvotes: 7

Views: 5079

Answers (1)

weltraumpirat
weltraumpirat

Reputation: 22604

Use Font.enumerateFonts().

var fonts:Array = Font.enumerateFonts();
for each(var font:Font in fonts)
    trace( font.fontName+":"+font.fontType );

Upvotes: 13

Related Questions