Skip to main content
Participant
June 24, 2011
Answered

Flex TLF multilingual (Korean & Chinese)

  • June 24, 2011
  • 1 reply
  • 1107 views

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.

This topic has been closed for replies.
Correct answer Jin-Huang

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.

1 reply

Jin-HuangCorrect answer
Adobe Employee
June 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.

Participant
July 1, 2011

thanks, got it