shithub: freetype+ttf2subf

Download patch

ref: 748e3681734eb40952f2eabb61ae90f5f7e7b2a2
parent: e6593389cf557740d6b15d6065bb96a4a81cabeb
author: Dave Arnold <[email protected]>
date: Wed Oct 21 09:58:43 EDT 2015

[cff] Remove an assert (#46107).

* src/cff/cf2hints.c (cf2_hintmap_insertHint): Ignore paired edges
in wrong order.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2015-10-21  Dave Arnold  <[email protected]>
+
+	[cff] Remove an assert (#46107).
+
+	* src/cff/cf2hints.c (cf2_hintmap_insertHint): Ignore paired edges
+	in wrong order.
+
 2015-10-21  Werner Lemberg  <[email protected]>
 
 	[sfnt] Avoid unnecessarily large allocation for WOFFs (#46257).
--- a/src/cff/cf2hints.c
+++ b/src/cff/cf2hints.c
@@ -587,8 +587,9 @@
     }
 
     /* paired edges must be in proper order */
-    FT_ASSERT( !isPair                                         ||
-               topHintEdge->csCoord >= bottomHintEdge->csCoord );
+    if ( isPair                                         &&
+         topHintEdge->csCoord < bottomHintEdge->csCoord )
+      return;
 
     /* linear search to find index value of insertion point */
     indexInsert = 0;