Posts Tagged ‘htmlText’

Embed automatically italic and bold fonts in TextField

Monday, January 19th, 2009

Flash is not that great at handling html text in TextFields. In particular, when you’ve got dynamic italic and bold text, the italic and bold fonts are not embedded by default – even if you embed your font for your TextField (it embed only the regular version)
So as a result, when loading dynamically italic or bold html text, the text is displayed as regular.

The easy trick is simply to write some dummy bold, italic and bold italic (as per your needs) text in your TextField from the Flash IDE initially. Then the corresponding bold, italic, and bold italic fonts will automatically be embedded!