shithub: freetype+ttf2subf

Download patch

ref: 1a37e4174bf2a4353b5b6dc2e089eb0765c1dc8f
parent: f966da825c48fca86f239071789391246837ade9
author: Werner Lemberg <[email protected]>
date: Mon Nov 12 06:01:07 EST 2012

[autofit] Minor improvement.

* src/autofit/aflatin.c (af_latin_hints_compute_blue_edges): Fix
loop.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-11-12  Werner Lemberg  <[email protected]>
+
+	[autofit] Minor improvement.
+
+	* src/autofit/aflatin.c (af_latin_hints_compute_blue_edges): Fix
+	loop.
+
 2012-11-10  Werner Lemberg  <[email protected]>
 
 	[autofit] Improve tracing.
--- a/src/autofit/aflatin.c
+++ b/src/autofit/aflatin.c
@@ -1409,7 +1409,7 @@
     /* for each horizontal edge search the blue zone which is closest */
     for ( ; edge < edge_limit; edge++ )
     {
-      FT_Int    bb;
+      FT_UInt   bb;
       AF_Width  best_blue = NULL;
       FT_Pos    best_dist;  /* initial threshold */
 
@@ -1422,7 +1422,7 @@
       if ( best_dist > 64 / 2 )
         best_dist = 64 / 2;
 
-      for ( bb = 0; bb < AF_LATIN_BLUE_MAX; bb++ )
+      for ( bb = 0; bb < latin->blue_count; bb++ )
       {
         AF_LatinBlue  blue = latin->blues + bb;
         FT_Bool       is_top_blue, is_major_dir;