werehunt
August 23rd, 2009, 10:10 AM
I want to push into someFonts ONLY fonts which start with certain letter(s) (if they are any)
possible?
var systemFonts:Array = new Array();
var someFonts:Array = new Array();
systemFonts = Font.enumerateFonts(true);
systemFonts.sortOn("fontName");
for (var i:int = 0; i < systemFonts.length; i++) {//this will push all
someFonts.push(systemFonts[i]);
}
possible?
var systemFonts:Array = new Array();
var someFonts:Array = new Array();
systemFonts = Font.enumerateFonts(true);
systemFonts.sortOn("fontName");
for (var i:int = 0; i < systemFonts.length; i++) {//this will push all
someFonts.push(systemFonts[i]);
}