开发者

Does Adobe TLF Support Chinese Fonts in RichEditableText Component

I've created a "Poster Maker" in Flex. The text part of the poster is written inside a TLF-based RichEditableText component. Users can choose the font for the text using a ComboBox which list开发者_StackOverflow中文版s all the device fonts on the computer.

All works well, until Chinese users try to apply a Chinese font and it doesn't work.

Here's a screencast of the problem (just over 1 min long). In it you can see I can write Chinese in WordPad and apply the two different Chinese fonts I have on the PC without any problems. When I switch to the Flex app and try the same it doesn't work.

I'm at a loss as to why this won't work.

The change event of the font picker ComboBox looks like this:

var txtLayFmt:TextLayoutFormat = editor.getFormatOfRange(null,
 editor.selectionAnchorPosition,
 editor.selectionActivePosition
);

txtLayFmt.fontFamily = fontPicker.selectedItem.font;

editor.setFormatOfRange(txtLayFmt,
 editor.selectionAnchorPosition,
 editor.selectionActivePosition
);

Where selectedItem.font is the fontname of the font and is what you see as the label in the ComboBox.

Any help is much appreciated.

Jake


I think you need to use "AFEFontManager" for Chinese Fonts

About the font managers

To change the font manager use compiler argument

-managers flash.fonts.AFEFontManager

EDITED:

I Agree you are using device FONTS but change FONT-MANAGER preferences may also put impact on run time

Please Try to compile APP by Change Font-Manager Order as in link

Troubleshooting fonts in Flex applications

Hopes that helps

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜