Skip to main content
Participant
Jul 25, 2014 4:01 AM UTC
Answered

How can I enumerate Fonts without The EFT not suport?

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.
jadams602
jadams602Correct answer
Inspiring
Jul 26, 2014 1:32 PM UTC

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
Jul 26, 2014 1:32 PM UTC

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?

Translate
tiny4xAuthor
Participant
Jul 27, 2014 5:20 AM UTC

Thanks for your replay.

It's work well.

Translate