Commit 322b3be514e0cfd301558b9138ef12a176f8abea

Werner Lemberg 2017-01-15T13:57:25

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

diff --git a/ChangeLog b/ChangeLog
index 8f1127a..daf7088 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-01-15  Werner Lemberg  <wl@gnu.org>
+
+	* src/truetype/ttgxvar.c (tt_apply_var): Handle underline parameters
+	also.
+
 2017-01-11  Werner Lemberg  <wl@gnu.org>
 
 	* src/base/ftobjs.c (ft_open_face_internal): Improve tracing.
diff --git a/src/truetype/ttgxvar.c b/src/truetype/ttgxvar.c
index 0380335..386c70f 100644
--- 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,