Hi Brian

Thanks for the tips, also I change the font (from system font to 
encoding Unicode font ), It did work, which mean if I need jpanaese 
or korean languages, what I need is embeded these fonts as well.

thanks one moe time!

--- In [email protected], "Brian Deitte" <[EMAIL PROTECTED]> 
wrote:
>
> Vossler, not sure exactly what the issue is, but I wanted to point 
out
> that you can remove the "Font.registerFont()" statement, as this 
isn't
> needed if you aren't loading the font dynamically.  You can also 
remove
> the Embed statements, as this embedding is already done in the 
Style
> block.  -Brian
> 
>  
> 
> ________________________________
> 
>       From: [email protected]
> [mailto:[EMAIL PROTECTED] On Behalf Of Vossler Tsao
>       Sent: Monday, November 27, 2006 2:59 AM
>       To: [email protected]
>       Subject: [flexcoders] rotated text filed can type in
> multu-language ?
>       
>       
> 
>       Hi flexcoders
>       
>       I am struggle with problem couple days, still don't work 
out.
>       
>       Is the text field can deal with (type in) any multi-language
> such 
>       japance or chinese word. I tried to replace fonts and 
encoding, 
>       still in vain.
>       
>       here is the codes , flex mxml file
>       ##################################################
>       
>       <?xml version="1.0" encoding="utf-8"?>
>       
>       <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml
> <http://www.adobe.com/2006/mxml> " 
>       initialize="Font.registerFont(arial_font);">
>       
>       <mx:Script>
>       <![CDATA[
>       
>       import flash.text.Font;
>       
>       [Embed("assets/arial.ttf", fontName="MyFont")]
>       public var arial_font:Class;
>       
>       ]]>
>       </mx:Script>
>       <mx:Style>
>       @font-face
>       {
>       src:url("assets/arial.ttf");
>       font-family: MyFont; 
>       }
>       
>       @font-face 
>       {
>       src:url("assets/arialbd.ttf");
>       font-family: MyFont; 
>       font-weight: bold;
>       }
>       
>       </mx:Style>
>       
>       <mx:Panel title="text" width="423" height="262">
>       
>       <mx:Button id="rotationButton" label="25" 
fontFamily="MyFont" 
>       rotation="-25"/>
>       
>       <mx:Label id="rotationLabel" text="test" 
fontFamily="MyFont" 
>       rotation="-25" height="58" width="63"/>
>       <mx:TextInput id="rotationtextfiles" text="test" 
>       fontFamily="MyFont" rotation="-25" height="20" width="230"/>
>       
>       </mx:Panel>
>       
>       </mx:Application>
>


Reply via email to