Skip to main content
April 1, 2010
Question

TextLayoutFramework - Japanese Text

  • April 1, 2010
  • 1 reply
  • 1224 views

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.


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

    This topic has been closed for replies.

    1 reply

    Participant
    July 8, 2010

    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.