This content has been marked as final. Show 7 replies
code is working on my system... what is not working by the way?
Thanks for the reply.
Sorry, I didn't make it clear.
The problem is :
no matter what Font you set to the TextFormat ("宋体",“隶书”,"楷书" or whatever), the look of the text does not change at all.
But if it is the western font ("Arial", "Courier","Times New Roman" or others), it works fine. You set different font to TextFormat, the TextField has different look.
Sorry for my english, I hope I have put it clear.
Thanks for help!
there is no parameter for new TextFormat(). you can only set the properties with it.
var my_fmt:TextFormat = new TextFormat();
my_fmt.bold = true;
>>var deg_fmt:TextFormat = new TextFormat("宋体",12,0x0);
TextFormat do have parameters:
TextFormat([font:String], [size:Number], [color:Number], [bold:Boolean], [italic:Boolean], [underline:Boolean], [url:String], [target:String], [align:String], [leftMargin:Number], [rightMargin:Number], [indent:Number], [leading:Number])
u cant see much different for chinese word with small size, after antialias.
try the script below, you can see the different
if you are using 隶书 or 楷书 etc font, you'll need to embed it to your movie
my_txt.embedFonts = true;
do remember that embeding the font will increase your movie filesize
Okay my mistake :-)
Thank you guys.
Your replies really helped. I will figure out how to embed the font into my movie later by myself.
Thank you very much.