Copy link to clipboard
Copied
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.
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
thanks, got it
Find more inspiration, events, and resources on the new Adobe Community
Explore Now