swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] Using text and resulting SWF filesize


From: Matthias Kramm
Subject: Re: [Swftools-common] Using text and resulting SWF filesize
Date: Wed, 12 Sep 2007 14:25:14 +0200
User-agent: Mutt/1.5.6i

On Tue, Sep 11, 2007 at 11:29:44PM +0300, Vladimir Dzhuvinov wrote:
> Today I put some simple text (4 characters) into my SWF animation and
> wow, the size of the resulting file suddenly jumped from 25 kBytes to
> 120 kBytes!
> 
> I used the font2swf utility and the .font and .text commands.
> 
> It looks as if the whole font table gets embedded into the compiled SWF
> file. Is there any way to conserve some bytes when using text?

In the newest development version of swftools, you can pass
the "glyphs" parameter to .font so it will know which characters to
embed:

    .font font1 "Helvetica.ttf" glyphs="helo wrd"

Greetings

Matthias






reply via email to

[Prev in Thread] Current Thread [Next in Thread]