Skip to main content
Participant
July 25, 2014
Answered

How can I enumerate Fonts without The EFT not suport?

  • July 25, 2014
  • 1 reply
  • 393 views

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.

This topic has been closed for replies.
Correct answer jadams602

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?

1 reply

jadams602
jadams602Correct answer
Inspiring
July 26, 2014

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?

tiny4xAuthor
Participant
July 27, 2014

Thanks for your replay.

It's work well.