开发者

Dynamic text lost its bold styling

In the Flash IDE, I have made a dynamic text field bold. When the Flash is compiled and run, the bold styling disappears. How do I retain the bold开发者_StackOverflow社区 styling?

Top: IDE

Bottom: SWF

Dynamic text lost its bold styling


You're seeing only the characters that were in the TextField initally, because they are automatically embedded, and you have the font lookup set to something other than "Use Device Fonts".

To fix the missing chars, change the font lookup to "Use Device Fonts", or embed both normal and bold "Arial".

The top TextField is not bold because Flash Pro sets the font style only on the text you entered at design time. You can fix it by using textField.htmlText = '<b>Bold Text</b>' instead of textField.text = 'Bold Text'.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜