views:

424

answers:

1

Hi all !

I have this text "my text is <b>bold</b> and regular".

I want "<b>bold</b>" to be... well, let's say... bold !

I have a mask layer under which there is a text field.

The text field shows htmlText, and i must embed chars. If not embedded, it doesn't display because of the mask. So the solution of importing 2 user fonts ( one bold and one regular) does not work.

I'm thinking this is impossible to do with Flash... Maybe I wrong, am I ?

Thank you !

A: 

The problem is that when you embed the characters, it only embeds normal-weight font characters. The Mask is a red-herring; this will happen whether you mask the TextField or not.

You can solve the problem however! Create another TextField in your FLA (off-stage, I imagine) with the same font at the same size, but set the font to bold. Embed characters in that TextField too.

Then, the bold characters in your first TextField will display as bold.

There are other ways to achieve this, especially if you don't use the Flash IDE to compile your swfs (if you use MXML through FDT, FlexBuilder, FlashBuilder or FlashDevelop for example). If you do, then you should lookup how to embed fonts using [Embed] metadata.

alecmce