summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2017-10-22 00:29:14 +0300
committerRasmus Andersson <rasmus@notion.se>2017-10-22 00:29:14 +0300
commitdff0d33c590cf0c76e3e7b909d15de8a77084764 (patch)
tree191f1eddcdfcaa0448186f896fbc2cf17e94b2ff
parent450ebd64f096bf15b37f9d5ff643345ea0d4ca4e (diff)
downloadinter-dff0d33c590cf0c76e3e7b909d15de8a77084764.tar.xz
Fix bug in misc/kernsample.py
-rwxr-xr-xmisc/kernsample.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/misc/kernsample.py b/misc/kernsample.py
index cc36fbe17..d67ba719d 100755
--- a/misc/kernsample.py
+++ b/misc/kernsample.py
@@ -62,7 +62,7 @@ def samplesForGlyphname(font, groups, groupmap, kerning, glyphname, args):
left = fmtGlyphname(glyphname, leftGlyph)
suffix_uc = ''
suffix_lc = ''
- if len(args.suffix) > 0:
+ if args.suffix and len(args.suffix) > 0:
s = unicode(args.suffix)
if s[0].isupper():
suffix_uc = args.suffix
@@ -112,7 +112,6 @@ def main():
'You can also provide a Unicode code point using the syntax "U+XXXX"')
args = argparser.parse_args()
- dryRun = args.dryRun
font = OpenFont(args.fontPath)