shithub: freetype+ttf2subf

Download patch

ref: eb7691cc3db9cfd28bff8a91bb83e2269c5ff804
parent: 752f39127b80368a60b1b84f8901694502340560
author: Werner Lemberg <[email protected]>
date: Fri Jan 24 14:04:22 EST 2014

Fix Savannah bug #41320.

* src/autofit/aflatin.c (af_latin_metrics_init_blues)
<AF_LATIN_IS_LONG_BLUE>: Avoid negative index of `last'.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2014-01-24  Werner Lemberg  <[email protected]>
+
+	Fix Savannah bug #41320.
+
+	* src/autofit/aflatin.c (af_latin_metrics_init_blues)
+	<AF_LATIN_IS_LONG_BLUE>: Avoid negative index of `last'.
+
 2014-01-23  Werner Lemberg  <[email protected]>
 
 	Fix Savannah bug #41310.
--- a/src/autofit/aflatin.c
+++ b/src/autofit/aflatin.c
@@ -592,7 +592,10 @@
                       if ( FT_ABS( points[next].x - points[first].x ) <=
                              20 * dist )
                       {
-                        last--;
+                        if ( last > best_contour_first )
+                          last--;
+                        else
+                          last = best_contour_last;
                         break;
                       }