shithub: freetype+ttf2subf

Download patch

ref: c6064286939f0688df8898d648d8743000bc66bf
parent: e4db8127900cdb07410e7be9c8defd5066dede0f
author: Werner Lemberg <[email protected]>
date: Tue Nov 5 08:29:15 EST 2013

[truetype] Correctly reset point tags for glyph components.
Problem reported by Nigel Tao <[email protected]>.

* src/truetype/ttgload.c (TT_Process_Composite_Glyph): Fix loop.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2013-11-05  Werner Lemberg  <[email protected]>
+
+	[truetype] Correctly reset point tags for glyph components.
+	Problem reported by Nigel Tao <[email protected]>.
+
+	* src/truetype/ttgload.c (TT_Process_Composite_Glyph): Fix loop.
+
 2013-11-02  Werner Lemberg  <[email protected]>
 
 	[truetype] Fix GETINFO opcode handling of subpixel hinting bits.
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -1254,7 +1254,7 @@
 
     /* Some points are likely touched during execution of  */
     /* instructions on components.  So let's untouch them. */
-    for ( i = start_point; i < loader->zone.n_points; i++ )
+    for ( i = 0; i < loader->zone.n_points; i++ )
       loader->zone.tags[i] &= ~FT_CURVE_TAG_TOUCH_BOTH;
 
     loader->zone.n_points += 4;