dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Embedding Font: SWF File Size

  1. #1
    Junior Member
    Join Date
    Apr 2001
    Posts
    6
    I am producing an interactive advertising banner and it has a dinamic text field which should display a text string calculated from a script formula.
    Embedding text works fine but the file is more that 3 times its size than when the font is not embedded. The weird thing is that when I create static text fields (the font is embedded by default), the size remains at 7K, even with all the script code. If I choose not to embed the fonts to my dinamic text field, size is still 7K. All I have to do is click the "[...]" (Embed All) button and... Voilá! Size is now 26K!!!
    Since commercial add banners must be at 24K maximum, this behavior will jeopardize my entire project.
    Does anybody have a clue for what is going on? Is there a way to embed a font only once and have it used to all text field, dinamic or not?
    I am using the same font for both static and dinamic text fields. It is the only font I am using at this project... Flash 5.

    Thanks!

  2. #2
    FK Official Postman
    Join Date
    Apr 2001
    Location
    Rockville, MD / UCSanDiego
    Posts
    827
    What kind of graphics do you have in the banner. Try inching down the JPEG quality, so that the filesize is </= to 24k. Not sure about the embedded fonts, but this could be a workaround.

  3. #3
    Senior Member
    Join Date
    May 2001
    Posts
    180
    If you are using static text, Flash only embeds the characters you need to display the text. Hence its only 7k. If you select embed all it includes the whole 256 characters. In most cases you don't need all the strange extra chacracters.

    If you don't need all the weird characters and international accented characters it's much better to just use the embed uppercase, lowercase, numbers, and punctuation. You then may need to add extra characters into the addition embed area as needed (e.g. if you are going to be displaying french you may want to add only the french accented characters), but I reckon you will get easily below the 24k mark if you do that.

  4. #4
    Junior Member
    Join Date
    Apr 2001
    Posts
    6
    Thanks tone001!

    I'll try to add the special characters I'm using, since I'm writing in Portuguese and we do have accents. But the file will surely be much smaller! I'll add only non-caps letters and mannualy add the missing ones!
    Thank to you too, kb1827, but I still don't have any graphics at all, just fonts. That's why I was amazed by the size of my file. It will surely work roght now!

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