shithub: freetype+ttf2subf

Download patch

ref: ac335cd5865fcae031689e23c470907245aad4a0
parent: 535b687e58960f29c2da936c486deb3065d32250
author: Werner Lemberg <[email protected]>
date: Thu May 16 06:15:53 EDT 2019

* src/truetype/ttgload.c (load_truetype_glyph): Init `unrounded'.

This fixes linear advance width values for spacing glyphs.  Bug
introduced 2019-05-09.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2019-05-16  Werner Lemberg  <[email protected]>
 
+	* 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  <[email protected]>
+
 	[truetype] Avoid code duplication.
 
 	* src/truetype/ttobjs.c (tt_size_run_prep): Scale CVT values in this
--- 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;