As3 Anti alias for readibility
Anyone know how to set a dynamic text box to "antialias for readability"? Heres my code:
var t=new TextField();
t.htmlText='<FONT FACE="Arial" SIZE="12" COLOR="#FF0000">Some Text Here</FONT>'
t.x=200
t.y=3开发者_JAVA技巧00
addChild(t)
I believe it is the antiAliasType property in conjunction with the sharpness property.
Check out the docs for AntiAliasType
, as this offers further control over the appearance of text in your project:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/AntiAliasType.html
you should create an font in the library, set it to export it for actionscript and then use the textfield.
精彩评论