PDA

View Full Version : Dynamic Text Still a Little Fuzzy



FNfG
August 28th, 2009, 12:24 PM
I read a post over here (http://davidhezlep.com/?tag=dynamic-text) talking about an the need for the proper order of text property declarations...

This must be the case, or I must still be overlooking something since my dynamic text field still doesn't render as sharply as it should.

when I set the text to rotate to test my embedding it rotates appropriately, so I know it isn't the font itself...here's my code:

var myFont = new Font2();
var smText:TextFormat = new TextFormat();
smText.size = 12;
smText.color = 0xCCCCCC;
smText.align = TextFormatAlign.JUSTIFY;
smText.font = myFont.fontName;


var sText:TextField = new TextField();

sText.defaultTextFormat = smText;
sText.embedFonts = true;
sText.antiAliasType = AntiAliasType.ADVANCED;
sText.text = "This is dynamic Text";
sText.wordWrap = true;
sText.width = 787;
sText.height = 100;
sText.x = 4;
sText.y = 276;
addChild(sText);
sText.alpha = 1;

any ideas?

***********************************

problem resolved by changing the TextFormatAlign property to LEFT as opposed to JUSTIFY.