Thu 01 Apr 2010 05:27:32 PM UTC, original submission:
I found 3 different instances of TrueType fonts all having one or more glyphs showing a horizontal shift for their outline generated by FT compared to what Acrobat shows when these fonts are used in a PDF file.
I tracked this down to exactly the same report as mentioned in http://lists.nongnu.org/archive/html/freetype-devel/2008-01/msg00063.html
Attached find a zip file with 3 PDF files and the 3 extracted TrueType fonts. I can only get the same outline positions as in Acrobat 7 (or 9, didn't try other versions) when I change in src\truetype\ttgload.c:
--8<--
/* In case bit 1 of the `flags' field in the `head' table isn't */
/* set, translate array so that (0,0) is the glyph's origin. */
if ( ( face->header.Flags & 2 ) == 0 && loader.pp1.x )
FT_Outline_Translate( &glyph->outline, -loader.pp1.x, 0 );
--8<--
back into:
--8<--
if ( loader.pp1.x )
FT_Outline_Translate( &glyph->outline, -loader.pp1.x, 0 );
--8<--
I.e. reverting rev 2752bd1a
Seen the change 2752bd1a has only done for supporting 'buggy fonts', I'm wondering if we shouldn't really revert to the previous case ?
Attached a patch to revert 2752bd1a.
|