开发者

Flash Dynamic TextFiled Font Issue on BOLD

开发者 https://www.devze.com 2022-12-15 16:51 出处:网络
am using AS3 and i have one dynamic text filed. The properties Fontname \"verdana\" size \"14\" style \"Bold\"

am using AS3 and i have one dynamic text filed. The properties Fontname "verdana" size "14" style "Bold"

it is shown the correct font in BOLD if there is no value if i assign values like

 priceText.text=" Hello Wold"

It will not show the correct font properties am not getting the bold style :(

What need to c开发者_如何学编程hange?

alt text http://www.freeimagehosting.net/uploads/c37867425c.jpg


When you set the formatting for the TextField you need to set the defaultTextFormat property. If you don't do this, any new text will default back to the old setting.


am assuming priceText is a dynamic text box already present on stage. you have to change its properties

uncheck the AutoKern box to remove that property and use the Embed button to Embed the font properties like uppercase,lowercase,punctuation,numerals


I believe that if you'll try to make a "TextFormat" instance with the correct properties.. and apply the TextFormat instance on the TextField each time you change the text dynamically (apply it after you change the text).. It will work!

Good Luck!

0

精彩评论

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