[swfmill] dynamic shared font loading

Chris Bare chris at bareflix.com
Tue Nov 22 09:49:09 EST 2005


> Anything new about dynamic shared font loading ?
> (http://osflash.org/pipermail/swfmill_osflash.org/2005-October/000241.html)
> 
> I'm stuck.
> I'm finishing a project using sharedfonts.
> Just because of that I have to switch from linux to Windows again to
> generate those damned swf files with the flash IDE.
> (see  http://zarate.tv/articulos/shared_fonts/
> <http://zarate.tv/articulos/shared_fonts/> technique).
> 

generate an example with the flash IDE of the files you need. Then use swfmill
to dump it out as XML. You should be able to locate the part that needs to be
changed, and write a little script to substitute that part, then regen the swf
with swfmill. Here's the XML I'm using to create a font swf:

<?xml version="1.0" encoding="iso-8859-1" ?>
	
<movie width="320" height="240" framerate="12">
<frame>
  <library>
<font id="$base" import="ttf/$ttf"/>
  </library>
      <Export>
        <symbols>
          <Symbol objectID="1" name="$base"/>
        </symbols>
      </Export>
</frame>
</movie>

One nice thing about swfmill is that it includes ALL the glyphs in the font.
AFAIK, there is no way to get the IDE to do that.
-- 
Chris Bare
chris at bareflix.com



More information about the swfmill mailing list