Skip to main content
Participant
January 27, 2011
Question

Get a Arabic text bold in a basic RichText control

  • January 27, 2011
  • 1 reply
  • 1089 views

Maybe a very silly question, but I'm searching for a solution many days now and maybe someone had the same issue.
I have a basic Arabic text and put in a Flex RichText control with this line:

public override function set text( value:String ):void

{
     this.textFlow = TextFlowUtil.importFromString( value );
     // this.textFlow = TextConverter.importToFlow( value, TextConverter.TEXT_FIELD_HTML_FORMAT );
}

In a CSS file I tell the application to make all the text bold for this RichText control. And the strange thing that happens is that a "normal" english text appears bold and the arabic text stays the same as if the font-weight was set to normal.


Can someone please help me?

This topic has been closed for replies.

1 reply

Adobe Employee
January 28, 2011

So what font are you using?  Is there a bold font with the arabic glyphs installed?  FTE doesn't do psuedo-bold so if it can't find a bold glyph to render you won't see the bold text.  If the font is missing the fallback may be finding a roman font with bold glyphs but not a arabic font.

Hope that helps,

Richard

RobinVdvAuthor
Participant
January 31, 2011

So I have to say which font to use by CSS and set this to an Arabic font?

Adobe Employee
January 31, 2011

Nothing to do with CSS.

On windows I have AdobeArabic-Regular and AdobeArabic-Bold installed.

This markup gives me bold text.  I use the textLine.dump() method to see what font player has actually chosen.

<span fontFamily="Adobe Arabic" fontWeight="bold">

If I remove AdobeArabic-Bold and render the same markup FlashPlayer does a fallback looking for some appropriate bold font that has Arabic.  If it can't find it bold text is not rendered.

Hope that helps,

Richard