creationComplete="checkCharacterSupport();">
@font-face{
font-family: myABFont;
flashType: true;
src:url("a.ttf");
unicodeRange: U+0041-U+0042;
}
@font-face{
font-family: myABFont;
flashType: true;
src:url("a.ttf");
unicodeRange: U+0041-U+007F;
}
public function checkCharacterSupport():void {
var fontArray:Array = Font.enumerateFonts(false);
for(var i:int = 0; i < fontArray.length; i++) {
var thisFont:Font = fontArray[i];
if (thisFont.hasGlyphs("DHARMA")) {
trace(thisFont.fontName + " supports these glyphs");
} else {
trace(thisFont.fontName +" does not support these glyphs");
}
}
}