from_ greenass hansune
As 3.0
var tf_h:TextField = new TextField();
var tformat:TextFormat = new TextFormat();
tformat.font="삼성고딕 L";
tformat.size=100;
tformat.color = 0xffffff;
tf_h.antiAliasType = AntiAliasType.ADVANCED;
tf_h.selectable = false;
tf_h.sharpness = 0;
tf_h.thickness = 0;
tf_h.gridFitType = GridFitType.SUBPIXEL;
tf_h.autoSize = TextFieldAutoSize.LEFT;
tf_h.defaultTextFormat = tformat;
//tf_h.embedFonts = true;
tf_h.text="아침에";
var s:Sprite = new Sprite();
s.addChild(tf_h);
addChild(s);
trace(tf_h.textWidth); //300
trace(tf_h.width); //304
trace(s.width); //304
trace(tf_h.textHeight); //100
trace(tf_h.height); //104
trace(s.height); //104
tf_h.text="아침";
trace(tf_h.textWidth); //200
trace(s.width); //204
s.scaleX = 0.5;
s.scaleY = 0.5;
trace(tf_h.width);//204
trace(s.width);//102
** displayObject 사이즈를 줄여도 포함된 텍스트 필드 사이즈는 불변





