shithub: freetype+ttf2subf

Download patch

ref: 6ec0434ec9e36dd72d446b2b3dc4e1f56b962926
parent: 633d8ed2c9d65a2f71c01ff813ee24ce58a8d0de
author: Alexei Podtelezhnikov <[email protected]>
date: Sun Aug 30 18:50:48 EDT 2015

Minor refactoring.

git/fs: mount .git/fs: mount/attach disallowed
--- a/src/base/ftoutln.c
+++ b/src/base/ftoutln.c
@@ -942,8 +942,8 @@
       l_in = 0;
       last = outline->contours[c];
 
-      /* Counter i cycles though the points; counter j advances only */
-      /* if points are moved; anchor k marks the first moved point.  */
+      /* Counter j cycles though the points; counter i advances only  */
+      /* when points are moved; anchor k marks the first moved point. */
       for ( i = last, j = first, k = -1;
             j != i && i != k;
             j = j < last ? j + 1 : first )
@@ -953,6 +953,9 @@
           out.x = points[j].x - points[i].x;
           out.y = points[j].y - points[i].y;
           l_out = FT_Vector_NormLen( &out );
+
+          if ( l_out == 0 )
+            continue;
         }
         else
         {
@@ -959,9 +962,6 @@
           out   = anchor;
           l_out = l_anchor;
         }
-
-        if ( l_out == 0 )
-          continue;
 
         if ( l_in != 0 )
         {