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

TextLayoutFramework - Japanese Text

Guest
Apr 01, 2010 Apr 01, 2010

Copy link to clipboard

Copied

Hi all,

I found some strange things to happen to TLF used in my application.

The original text looks like this.

ニコン液晶露光装置 「FX-75S」「FX-85S」

But when it moves to the TLF editor, it looks like this.

Jap.PNG
As you can see the the special characters moved to boxes..

Can any one help me to find the solution ASAP.

Thanks in Advance

Krishna

Views

1.2K

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 07, 2010 Jul 07, 2010

Copy link to clipboard

Copied

LATEST

Is this solved?

You should specify fontFamily property precisely whenever you deal with Japanese text.

"_sans" or "_明朝" works fine with Flash IDE or else, but not with TLF.

Ex:

var tlf:TextFlow; //Suppose this is what you made.

tlf.fontFamily = "MS 明朝"; //Set fontName correctly.

tlf.fontLookUp = FontLookUp.DEVICE;

If you use embedded font, things are same.

var f:Font; // Suppose this is the font you've embedded.

tlf.fontFamily = f.fontName;

tlf.fontLookUp = FontLookUp.EMBEDDED_CFF;

The problem is that you can't know if your user have installed that font;

To avoid it, make a list of fonts generally installed and detect proper font

with System.capability.os.

I hope this would help.

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