flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From OmPrakash Muppirala <bigosma...@gmail.com>
Subject Re: unable to make korean text bold or italic
Date Tue, 15 Apr 2014 07:28:47 GMT
On Apr 15, 2014 12:25 AM, "krishna4960" <murali.krishna@happiestminds.com>
wrote:
>
> Hello,
>
> I am using a custom note tool in which i have a RichEditableText control.
> User can make selected text bold or italic by clicking on the respective
> bold and italic buttons..for example to make selected text bold i am doing
> something like this
>                         var tlf:TextLayoutFormat = getTextLayoutFormat();
>                         tlf.fontWeight = setBold ? FontWeight.BOLD :
FontWeight.NORMAL;
>                         if (selectionAnchorPosition == 0 &&
> selectionActivePosition == 0)
>                         {
>                         editManager.applyLeafFormat(tlf, new
> SelectionState(editableTextDisplay.textFlow, 0,
> editableTextDisplay.text.length, tlf));
>                         }
>                         else
>                         {
>                                 editManager.applyLeafFormat(tlf);
>                         }
>
> this works well for English, but i face problem with korean characters...i
> can't make them bold or italic...
> plz let me know which font file i have to embed to resolve this issue
>
>

You may need to use a variant of the font that contains the bold glyphs.
Some fonts have a different font file for bold.

Thanks,
Om

>
>
> --
> View this message in context:
http://apache-flex-development.2333347.n4.nabble.com/unable-to-make-korean-text-bold-or-italic-tp36851.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message