chiark / gitweb /
Improve nib shape for Bedstead Chiseltip.
authorBen Harris <bjh21@bjh21.me.uk>
Fri, 18 Aug 2017 21:46:41 +0000 (22:46 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Fri, 18 Aug 2017 21:46:41 +0000 (22:46 +0100)
It's now an integer approximation to the original 20° 100×50 rectangle
that I first used.

strokefont.py

index 477fb74941227721f52e04f2102ef0b71809fff6..4b257d6f57cf7055eec9136914d7c1d048c075aa 100644 (file)
@@ -45,14 +45,14 @@ class Chiseltip(Stroker):
     ttfweight = 500
     def __init__(self, fontname):
         chisel = fontforge.contour()
-        chisel.moveTo(-50, 0)
-        chisel.lineTo(28, 45)
-        chisel.lineTo(50, 0)
-        chisel.lineTo(-28, -45)
+        chisel.moveTo(-56, 7)
+        chisel.lineTo(39, 41)
+        chisel.lineTo(56, -7)
+        chisel.lineTo(-39, -41)
         chisel.closed = True
         self.nib = ['polygonal', chisel]
-        self.nibwidth = 100
-        self.nibheight = 90
+        self.nibwidth = 112
+        self.nibheight = 82
         super(Chiseltip, self).__init__(fontname)
 
 modes = {