chiark / gitweb /
Set underline width for stroked fonts.
authorBen Harris <bjh21@bjh21.me.uk>
Fri, 18 Aug 2017 21:46:18 +0000 (22:46 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Fri, 18 Aug 2017 21:46:18 +0000 (22:46 +0100)
strokefont.py

index 75f315a25c06b9d518a5a3c01d93a94a962ace84..477fb74941227721f52e04f2102ef0b71809fff6 100644 (file)
@@ -22,6 +22,7 @@ class Stroker(object):
         f.fullname = self.fullname
         f.private['StdHW'] = self.nibheight
         f.private['StdVW'] = self.nibwidth
+        f.uwidth = self.nibheight
         f.os2_weight = self.ttfweight
         f.weight = self.weight
         return f