Copy link to clipboard
Copied
I get all fonts by "Font.enumerateFonts(true)". But "FTE (Flash Text Engine) does not support Type 1 fonts or bitmap fonts such as Type 3, ATC, sfnt-wrapped CID, or Naked CID" How can excluding them.
Please help me. Thanks.
What happens when you iterate the results from Font.enumerateFonts(true) and pass each fontName through a call to:
import flash.text.engine.FontDescription;
import flash.text.engine.FontPosture;
import flash.text.engine.FontWeight;
...
FontDescription.isDeviceFontCompatible(aFontName, FontWeight.NORMAL, FontPosture.NORMAL)
Does this return true for the fonts that you want to filter on?
Copy link to clipboard
Copied
What happens when you iterate the results from Font.enumerateFonts(true) and pass each fontName through a call to:
import flash.text.engine.FontDescription;
import flash.text.engine.FontPosture;
import flash.text.engine.FontWeight;
...
FontDescription.isDeviceFontCompatible(aFontName, FontWeight.NORMAL, FontPosture.NORMAL)
Does this return true for the fonts that you want to filter on?
Copy link to clipboard
Copied
Thanks for your replay.
It's work well.