From: Ben Harris Date: Tue, 6 Mar 2018 21:39:47 +0000 (+0000) Subject: strokefont: Slightly clean up chiseltip invocation X-Git-Tag: bedstead-002.000~30 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=f438f9ad7e5d9dce5dea7a16a9b5fd46f0268b7d;p=bedstead.git strokefont: Slightly clean up chiseltip invocation --- diff --git a/strokefont.py b/strokefont.py index 1078a96..346ed1b 100644 --- a/strokefont.py +++ b/strokefont.py @@ -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]]