redconservatory
redconservatory

Reputation: 21924

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:

alt text

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?

alt text

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

Upvotes: 0

Views: 1144

Answers (1)

Aaron
Aaron

Reputation: 4614

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.

Upvotes: 3

Related Questions