开发者

As3 Anti alias for readibility

开发者 https://www.devze.com 2023-03-20 07:26 出处:网络
Anyone know how to set a dynamic text box to \"antialias for readability\"? Heres my code: var t=new TextField();

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号