Fix Savannah bug #29404.

* src/truetype/ttgload.c: Revert change 2752bd1a (check on bit 1
of `head' table of TrueType fonts).
This commit is contained in:
John Tytgat 2010-04-05 08:22:22 +02:00 committed by Werner Lemberg
parent f00957c1c1
commit 8c4cce5259
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2010-04-01 John Tytgat <John.Tytgat@esko.com>
Fix Savannah bug #29404.
* src/truetype/ttgload.c: Revert change 2752bd1a (check on bit 1
of `head' table of TrueType fonts).
2010-03-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Fix `multi build' for Tytgat's CFF driver improvement.

View File

@ -2066,9 +2066,11 @@
glyph->outline = loader.gloader->base.outline;
glyph->outline.flags &= ~FT_OUTLINE_SINGLE_PASS;
/* 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 )
/* Translate array so that (0,0) is the glyph's origin. Note */
/* that this behaviour is independent on the value of bit 1 of */
/* the `flags' field in the `head' table -- at least major */
/* applications like Acroread indicate that. */
if ( loader.pp1.x )
FT_Outline_Translate( &glyph->outline, -loader.pp1.x, 0 );
}