From 8c4cce52595dc4ac55bd5832703d74d7f12afe05 Mon Sep 17 00:00:00 2001 From: John Tytgat Date: Mon, 5 Apr 2010 08:22:22 +0200 Subject: [PATCH] Fix Savannah bug #29404. * src/truetype/ttgload.c: Revert change 2752bd1a (check on bit 1 of `head' table of TrueType fonts). --- ChangeLog | 7 +++++++ src/truetype/ttgload.c | 8 +++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index f09cb78a2..1c62e1699 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-04-01 John Tytgat + + 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 Fix `multi build' for Tytgat's CFF driver improvement. diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c index 2f0360080..ad416f0c3 100644 --- a/src/truetype/ttgload.c +++ b/src/truetype/ttgload.c @@ -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 ); }