shithub: freetype+ttf2subf

Download patch

ref: 99e60d840db667ec9f50e481572aa5df97d23836
parent: e2d73df77dc36556b0ff3a6b9a96eec4f6fbc20a
author: Werner Lemberg <[email protected]>
date: Sun Jun 9 21:44:37 EDT 2013

Fix Savannah bug #39160.

* src/truetype/ttinterp.c (Ins_SDPVTL): Set projection vector too
for the degenerate case.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2013-06-10  Werner Lemberg  <[email protected]>
+
+	Fix Savannah bug #39160.
+
+	* src/truetype/ttinterp.c (Ins_SDPVTL): Set projection vector too
+	for the degenerate case.
+
 2013-06-09  David Turner  <[email protected]>
 
 	* src/cache/ftcmanag.c (FTC_Manager_Reset): Add missing cache flush.
--- a/src/truetype/ttinterp.c
+++ b/src/truetype/ttinterp.c
@@ -5398,6 +5398,12 @@
 
       A = v1->x - v2->x;
       B = v1->y - v2->y;
+
+      if ( A == 0 && B == 0 )
+      {
+        A    = 0x4000;
+        aOpc = 0;
+      }
     }
 
     if ( ( aOpc & 1 ) != 0 )