Skip navigation
Currently Being Moderated

font embedded but no <b> tag

Apr 18, 2013 4:36 PM

I've imported two new fonts into my library. The regular and bold version of FrutigerCE. Drew a dynamic textfield on stage and entered some text in it in FrutigerCE Regular. Then I added this script:

 

myField_txt2.html = true;

myField_txt2.multiline = true;

myField_txt.html=true;

myField_txt2.htmlText = "This is <b>bold</b> text";

But the bold-tag doesn't work. It displays 'This is bold text' in regular Frutiger. Even though I imported both the regular and bold version and exported them for actionscript.

 

Then I did the same thing with Verdana, imported both the regular and bold version. Changed the dynamic textfield's text into Verdana Regular. Did a Test Movie with the same script and now it works? It shows 'This is bold text' in Verdana.

 

So why doesn't it work when I use both Regular and Bold of FrutigerCE, but does it work when I use Regular and Bold of Verdana?

 

I've included the fla file and both font files. Can anyone see what's wrong?

 

Has it perhaps something to do with the font? Or have I forgotten something?

 

The file and fonts can be downloaded from http://sharesend.com/ot27gliv

 
Replies
  • Currently Being Moderated
    Apr 18, 2013 4:38 PM   in reply to jiggy1965

    It might very well be the font.  Not all work as we would like them to with Flash

     
    |
    Mark as:
  • kglad
    72,235 posts
    Jul 21, 2002
    Currently Being Moderated
    Apr 18, 2013 4:38 PM   in reply to jiggy1965

    use setTextFormat to assign the fonts or use stylesheets.

     
    |
    Mark as:
  • kglad
    72,235 posts
    Jul 21, 2002
    Currently Being Moderated
    Apr 19, 2013 10:07 AM   in reply to jiggy1965

    again, you need to assign a linkage id for both your fonts and assign the font using setTextFormat or using a stylesheet.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points