SWFImportFreetype.cpp isn't used anymore the font import code is in swft/swft_import_ttf.cpp. I did some work on the font import some time ago, but didn't commit the results yet. I think I finished almost all the lowlevel stuff (xml->swf and back) for the DefineFont3 and DefineFontAlignZones (incorrectly called DefineFontInfo3 in current svn) tags. The DefineFont3 support shouldn't be hard to implement, but I'm not sure about the font align zones. I'll commit the work I've already done in the next days when I've checked that it doesn't break anything else.
Ralf > Hi Mike, > > As far as I know, Swfmill only supports DefineFont2, not DefineFont3 > as it is used in SWF9 (or 8?). DefineFont3 would be needed to take > advantage of the better font rendering settings. > > I might miss something, so please Dan or Ralf correct me, but it seems > the places to look for are: > > <http://swfmill.org/trac/browser/trunk/src/xslt/simple-import.xslt> > from line 140, and > <http://swfmill.org/trac/browser/trunk/src/SWFImportFreetype.cpp> from > line 48 need an importDefineFont3 equivalent. > <http://swfmill.org/trac/browser/trunk/src/SWFGlyphList.cpp> might be > of interest as well. > > Anyway, I don't know C++, but the links above should be a start. > > And the spec covers all of SWF, not just 9. The AVM2 opcodes are > missing, though. > > Regarding differences in font output, I imagine that they still > wouldn't be 100% the same, since Swfmill uses FreeType and Flash > uses... something else. That something might be in the Flex SDK > sources somewhere, but there it would probably be in Java. > > HTH, > Mark _______________________________________________ swfmill mailing list swfmill@osflash.org http://osflash.org/mailman/listinfo/swfmill_osflash.org