shithub: freetype+ttf2subf

Download patch

ref: 322b3be514e0cfd301558b9138ef12a176f8abea
parent: eae29d9155e73428b66bee3727cd653e4ab788ef
author: Werner Lemberg <[email protected]>
date: Sun Jan 15 08:57:25 EST 2017

* src/truetype/ttgxvar.c (tt_apply_var): Handle underline parameters
also.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-01-15  Werner Lemberg  <[email protected]>
+
+	* src/truetype/ttgxvar.c (tt_apply_var): Handle underline parameters
+	also.
+
 2017-01-11  Werner Lemberg  <[email protected]>
 
 	* src/base/ftobjs.c (ft_open_face_internal): Improve tracing.
--- a/src/truetype/ttgxvar.c
+++ b/src/truetype/ttgxvar.c
@@ -1263,6 +1263,10 @@
         }
       }
 
+      root->underline_position  = face->postscript.underlinePosition -
+                                  face->postscript.underlineThickness / 2;
+      root->underline_thickness = face->postscript.underlineThickness;
+
       /* iterate over all FT_Size objects and call `tt_size_reset' */
       /* to propagate the metrics changes                          */
       FT_List_Iterate( &root->sizes_list,