/ Published in: ActionScript 3
You have to import import flash.text.Font first
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// import flash.text.Font; /* Traced all embeded fonts */ trace('available fonts [' + Font.enumerateFonts().map(function(e:*, i:int, arr:Array):String { return e.fontName }) + ']');