chiark / gitweb /
strokefont: Slightly clean up chiseltip invocation
authorBen Harris <bjh21@bjh21.me.uk>
Tue, 6 Mar 2018 21:39:47 +0000 (21:39 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Tue, 6 Mar 2018 21:39:47 +0000 (21:39 +0000)
strokefont.py

index 1078a9623a5411ca951923ffb6854990da771d69..346ed1b63ed7e75ad8285ccf4e5ca63c9a6dfcf0 100644 (file)
@@ -57,7 +57,7 @@ class Chiseltip(Stroker):
     fullname = "Bedstead Chiseltip"
     weight = "Medium"
     ttfweight = 500
-    def __init__(self, fontname):
+    def __init__(self):
         chisel = fontforge.contour()
         chisel.moveTo(-56, 7)
         chisel.lineTo(39, 41)
@@ -67,14 +67,14 @@ class Chiseltip(Stroker):
         self.nib = ['polygonal', chisel]
         self.nibwidth = 112
         self.nibheight = 82
-        super(Chiseltip, self).__init__(fontname)
+        super(Chiseltip, self).__init__("BedsteadChiseltip")
 
 modes = {
     'plotter-thin': Plotter(10, "Thin", 100),
     'plotter-light': Plotter(50, "Light", 300),
     'plotter-medium': Plotter(100, "Medium", 500),
     'plotter-bold': Plotter(150, "Bold", 700),
-    'chiseltip': Chiseltip("BedsteadChiseltip"),
+    'chiseltip': Chiseltip(),
 }
 
 mode = modes[argv[1]]