A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: Using <b> tags in Html text

  1. #1

    Using <b> tags in Html text

    Hi, I have a textField set with Times font, embedded the font but the bold text does not display:

    Actionscript Code:
    myTextField.htmlText = "Regular <b>bold</b> <i>italic</i>"

    Displays:

    Regular bold italic

    however, when I set the Field to use device fonts, it works:

    Regular bold italic

    Is there a way of getting this to work without using device fonts?

  2. #2
    Senior Member
    Join Date
    Jan 2011
    Posts
    171
    Don't Embed Font.


    arkitx

  3. #3
    Anyone else?

  4. #4
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi,

    embed both the regular and bold, as far as i'm aware you need to embed all variations.

    my hobby

  5. #5
    Thanks fruitbeard, I have embedded the variations in the Library. Also I have tried the old trick of having a bold textField offstage

    I have attached a sample fla
    Attached Files Attached Files

  6. #6
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi,

    i didn't have the times font, so substituted them all for arial and it have it displaying Regular bold italic
    Last edited by fruitbeard; 06-22-2012 at 09:31 AM.

  7. #7
    hmm not working for me on a mac. tried changing to Arial

  8. #8
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi,

    maybe use the attached file of mine, above, same as yours just font altered, also try having completely empty fields first of all

  9. #9
    Just downloaded your one fruitbeard, it's all in regular. Are you on a PC ?

  10. #10
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    yes

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center