Skip to main content
Participant
July 25, 2014
Answered

How can I enumerate Fonts without The EFT not suport?

  • July 25, 2014
  • 2 replies
  • 395 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 is closed to new replies. Start a new post to keep the conversation going.
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?

2 replies

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.