View Full Version : set text font
Fabio1986
10-09-2009, 10:43 AM
hiiiiii!!!!!!
how can i to set a font in a textfield var???
var txt:textField=new textField();
i have to set the font of txt
gefelkafish
10-09-2009, 12:57 PM
var txt:TextField = new TextField();
var font:String = "Arial";
var size:Object = 11;
var color:uint = 0xFF0000;
var tFormat:TextFormat = new TextFormat( font, size, color );
txt.text = "hello world";
addChild( txt );
txt.setTextFormat( tFormat );
Fabio1986
10-09-2009, 02:51 PM
tnx
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.