Hi there

Rotated text field work just fine , however can't type in multu-
language (i mean japanese or chinese language ) in the text filed? I 
tried to change encoding and font type, still in vain.


Here is the code

###########################################################

<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="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 kaiu_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