shithub: freetype+ttf2subf

Download patch

ref: 8c4cce52595dc4ac55bd5832703d74d7f12afe05
parent: f00957c1c182aed828827e6001e0393046559ff1
author: John Tytgat <[email protected]>
date: Mon Apr 5 04:22:22 EDT 2010

Fix Savannah bug #29404.

* src/truetype/ttgload.c: Revert change 2752bd1a (check on bit 1
of `head' table of TrueType fonts).

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-04-01  John Tytgat  <[email protected]>
+
+	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  <[email protected]>
 
 	Fix `multi build' for Tytgat's CFF driver improvement.
--- 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 );
       }