• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

How can I enumerate Fonts without The EFT not suport?

New Here ,
Jul 24, 2014 Jul 24, 2014

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.

TOPICS
Development

Views

289

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Jul 26, 2014 Jul 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?

Votes

Translate

Translate
Engaged ,
Jul 26, 2014 Jul 26, 2014

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 26, 2014 Jul 26, 2014

Copy link to clipboard

Copied

LATEST

Thanks for your replay.

It's work well.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines