A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: How Do I Embed Fonts

  1. #1
    Senior Member
    Join Date
    Nov 2004
    Location
    nj
    Posts
    176

    How Do I Embed Fonts

    How can i embed fonts into my library?

  2. #2
    Senior Member
    Join Date
    Jan 2003
    Location
    Nebraska
    Posts
    448
    In the library window click on the little options symbol in the top right. Choose "New Font". Pick your font and give it a name.
    Then in your actionscript say your font is named "myFONT" and your textField is named "george":

    someNewFormat= new TextFormat();
    someNewFormat.font = "myFONT";

    george.embedFonts = true;
    george.setNewTextFormat(someNewFormat);
    ecards - My full flash site.

  3. #3
    Senior Member
    Join Date
    Nov 2004
    Location
    nj
    Posts
    176
    where do i place that Actionscript?

  4. #4
    Senior Member
    Join Date
    Jan 2003
    Location
    Nebraska
    Posts
    448
    Same frame your textfield is on. Can be on another layer.
    ecards - My full flash site.

  5. #5
    Senior Member
    Join Date
    Jan 2003
    Location
    Nebraska
    Posts
    448
    That's for embeding fonts for dynamic or input textfields that will be used more than once. If you only need to export the fonts for one dynamic field, in the properties for that field, click the "character" button and choose the ones you want to export.
    ecards - My full flash site.

  6. #6
    Senior Member
    Join Date
    Nov 2004
    Location
    nj
    Posts
    176
    thanks man!

  7. #7
    Senior Member
    Join Date
    Nov 2004
    Location
    nj
    Posts
    176
    if i just have the font in my library won't it just automatically link to it like in Quark?

  8. #8
    Senior Member
    Join Date
    Jan 2003
    Location
    Nebraska
    Posts
    448
    No it won't automatically link to it. What do you mean by "Quark"...like the text layout editor thing?
    ecards - My full flash site.

  9. #9
    Senior Member
    Join Date
    Nov 2004
    Location
    nj
    Posts
    176
    yeah.

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