A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [F8] Multiple fonts in text field.

  1. #1
    Senior Member Wancieho's Avatar
    Join Date
    May 2002
    Posts
    370

    [F8] Multiple fonts in text field.

    Is it possible to specify multiple fonts on 1 text field with a priority order? Like in CSS you would use: font-family: tahoma, arial, verdana, helvetica, sans-serif;

    Ideally I would like it to be from the properties window on a text field instance and not using the createTextField() method. If the method works I can change my project.

  2. #2
    Busy doing nothing Boris the Frog's Avatar
    Join Date
    Jan 2001
    Location
    Derby, UK
    Posts
    305
    You don't have to use createTextField().
    Set your textField html to true and apply a styleSheet to it
    There are only so many css properties you can set, but font-family is one of them
    Look it up in your Flash help in the Actionscript book "StyleSheet (TextField.StyleSheet)"
    You can even use an external css file.
    You make a styleSheet object and attach it to your textField/s
    Just add tags to your textField's htmlText
    --------------------------------------------------
    ‘There is no emoticon to express how I am feeling’ - Comic Book Guy
    There's an effective, simple solution to carbon sequestration... it's called 'coal', so leave it alone!
    There's an effective, simple solution to carbon capture....it's called 'trees', so plant some!

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