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

Flex TLF multilingual (Korean & Chinese)

New Here ,
Jun 24, 2011 Jun 24, 2011

Hi,

I am using text layout framework in my application. I am using RichEditableText for editing the text.

I used this mainly to provide right to left support for Arabic fonts (luckily which is working fine).

Now in Korean and Chinese language I am able to type but, I am not able to set BOLD and ITALICS properties in all the fonts.

Operating System: Windows XP

Fonts Working: Batang, Dotum, Gulim, Gungsuh

Fonts Not Working: All other fonts are not working Example: Arial, Georgia, Lucida, Times New Roman

Usage:

Var rte:RichEditableText = new Rich…

rte.setStyle(“fontWeight”, FontWeight.BOLD);

rte.setStyle(“fontFamily”, “FontName”);

<BorderContainer>.addElement (rte);

And I am using Flex 4.1

I tried setting the properties using textFlow also but unfortunately that is also not working.

TOPICS
Text layout framework
1.1K
Translate
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

Adobe Employee , Jun 24, 2011 Jun 24, 2011

Pls use a Chinese font and it works. If you use default font that is "Arial", the Chinese will not be bold even when you set fontWeight="bold", because Flash Text Engine works that way and TLF just deliver the attributes to the engine.

<s:RichEditableText>  
            <s:content>
                    <s:p><s:span fontFamily="宋体" fontWeight="bold">做个测试!</s:span></s:p>

             </s:content>

</s:RichEditableText>

I tested it with flex SDK 4.5.

Translate
Adobe Employee ,
Jun 24, 2011 Jun 24, 2011

Pls use a Chinese font and it works. If you use default font that is "Arial", the Chinese will not be bold even when you set fontWeight="bold", because Flash Text Engine works that way and TLF just deliver the attributes to the engine.

<s:RichEditableText>  
            <s:content>
                    <s:p><s:span fontFamily="宋体" fontWeight="bold">做个测试!</s:span></s:p>

             </s:content>

</s:RichEditableText>

I tested it with flex SDK 4.5.

Translate
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 01, 2011 Jul 01, 2011
LATEST

thanks, got it

Translate
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