shithub: freetype+ttf2subf

Download patch

ref: faa21472b795eff3a5254b17ca10d0333d7d03fe
parent: 07e7b8affeef35383fdef09ebe817b568f71249a
author: Werner Lemberg <[email protected]>
date: Sun May 11 08:44:00 EDT 2014

[autofit] Fix variable initializations.

* src/autofit/afhints.c (af_glyph_hints_reload): Assign default
values to `in_dir' and `out_dir' for all points.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2014-05-11  Werner Lemberg  <[email protected]>
 
+	[autofit] Fix variable initializations.
+
+	* src/autofit/afhints.c (af_glyph_hints_reload): Assign default
+	values to `in_dir' and `out_dir' for all points.
+
+2014-05-11  Werner Lemberg  <[email protected]>
+
 	[autofit] Fix crash with font `CabinSketch-Bold.ttf'.
 
 	Problem reported by Ralf S. Engelschall <[email protected]>.
--- a/src/autofit/afhints.c
+++ b/src/autofit/afhints.c
@@ -651,6 +651,9 @@
 
         for ( point = points; point < point_limit; point++, vec++, tag++ )
         {
+          point->in_dir  = (FT_Char)AF_DIR_NONE;
+          point->out_dir = (FT_Char)AF_DIR_NONE;
+
           point->fx = (FT_Short)vec->x;
           point->fy = (FT_Short)vec->y;
           point->ox = point->x = FT_MulFix( vec->x, x_scale ) + x_delta;