You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by krishna4960 <mu...@happiestminds.com> on 2014/04/15 09:24:01 UTC

unable to make korean text bold or italic

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




--
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.

Re: unable to make korean text bold or italic

Posted by OmPrakash Muppirala <bi...@gmail.com>.
On Apr 15, 2014 12:25 AM, "krishna4960" <mu...@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.