A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: embedding fonts and dynamic formatting problem...

  1. #1
    Senior Member
    Join Date
    Apr 2002
    Posts
    157

    embedding fonts and dynamic formatting problem...

    i've got an interface built that allows users to change the font and saves the values to a mysql database. everything saves fine but when i try to load them, it always uses times new roman instead of the font they chose. i am using textFieldFormat.font=fontvariable; and setting everything properly (i know this because the size, bold, italic, color, etc. are working fine). I've embedded all of the fonts earlier on in the .swf but that doesn't seem to help. do i need to set embedFonts=true?

    i must be missing something here.

    thanks...

  2. #2
    Senior Member
    Join Date
    Sep 2000
    Location
    Copenhagen, Denmark
    Posts
    228
    textFieldname.embedFonts = true; should do the trick if everything else you describe holds true.

    idi

  3. #3
    Senior Member
    Join Date
    Apr 2002
    Posts
    157
    i had already tried that but that wasn't working at all. i did figure it out... i needed to add the font to the library and choose "Export for Actionscript". that did the trick, but added immensely to the file size. now i'm trying to get it to work using shared library components.

    can anyone help here? i set my source .swf to export for runtime sharing and put in the URL (http://www.myurl.com) as the URL in the symbol linkage properties. then in the destination movie clip, i used import for runtime sharing and the same URL (http://www.myurl.com). i thought that would work, but it didn't. are there any rules i need to be cognizant of when it comes to naming the symbols? the identifier in both the exported and imported symbols are identical. do i need to really put http://www.myurl.com/file.swf in my destination .swf file?

    sorry for not explaining this in better detail, but i think that anyone who knows how to use shared library assets will understand what i'm saying.

    thanks...

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