On Tue, Nov 09, 2010 at 01:51:50PM +0800, Irving Popovetsky <[email protected]> wrote: > By removing "|FT_LOAD_NO_HINTING", pdf2swf will use Xpdf's default (turn > hinting on). Problem is, I don't understand why FT_LOAD_NO_HINTING is > being set in the first place in swftools. Is there a problem with some > latin fonts in pdf2swf?
pdf2swf transcodes fonts. It takes the fonts polygons and uses them to create a FlashType font. As pdf2swf only uses the polygons in a font, and nothing else, hinting doesn't make any difference- it would only affect how freetype would create bitmaps from the font, but not the polygon outlines. Hence, we don't need hinting, and leaving it turned on actually did cause problems with fonts that had incorrect hinting information or broken bytecode. So the only difference your patch might make is when you convert files using "-s bitmap", as that is the only way to have freetype-rendered bitmaps in the SWF output. If that was indeed your goal, then I believe it should be possible to enable hinting based on the value of the "config_full_bitmap_optimizing" setting. Matthias
