Commit ac335cd5865fcae031689e23c470907245aad4a0

Werner Lemberg 2019-05-16T10:15:53

* src/truetype/ttgload.c (load_truetype_glyph): Init `unrounded'. This fixes linear advance width values for spacing glyphs. Bug introduced 2019-05-09.

diff --git a/ChangeLog b/ChangeLog
index 25877da..6aab65c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2019-05-16  Werner Lemberg  <wl@gnu.org>
 
+	* src/truetype/ttgload.c (load_truetype_glyph): Init `unrounded'.
+
+	This fixes linear advance width values for spacing glyphs.  Bug
+	introduced 2019-05-09.
+
+2019-05-16  Werner Lemberg  <wl@gnu.org>
+
 	[truetype] Avoid code duplication.
 
 	* src/truetype/ttobjs.c (tt_size_run_prep): Scale CVT values in this
diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c
index 84b65d4..d214f87 100644
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -1739,7 +1739,7 @@
         FT_Outline  outline;
 
         /* unrounded values */
-        FT_Vector  unrounded[4];
+        FT_Vector  unrounded[4] = { {0, 0}, {0, 0}, {0, 0}, {0, 0} };
 
 
         points[0].x = loader->pp1.x;