Flash CS5: combining bold and regular text in a textfield?

I am trying to combine bold and regular text in a textfield but how do I embed an font family and not just a single style of a font?

See example of how I embedded a font, you can only choose one style: "regular", "bold", "italic" or "bold italic" at once:

替代文字

However, when you try to embed the text (via the IDE settings or actionscript) how do you set the font to be the entire family?

See: family only allows "ArialRegular" and not "Arial", the entire family?


Embed each part of the family as a separate font and if you are utilizing TextFormat objects, supply the additional startIndex/endIndex parameters to the setTextFormat function call to apply your bold text to a given range of characters. Alternatively, with both variants embedded, use HTML or a StyleSheet to specify each type as appropriate.

链接地址: http://www.djcxy.com/p/17780.html

上一篇: FlashCS5嵌入字体htmlText粗体:如何使用TLFTextField和TextConverter?

下一篇: Flash CS5:在文本字段中结合粗体和常规文本?