diff options
author | Rasmus Andersson <rasmus@notion.se> | 2021-03-24 03:08:14 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@notion.se> | 2021-03-24 03:08:14 +0300 |
commit | ac063a796e4d9385b6c8dd2c6d5a892378168681 (patch) | |
tree | bbe785ba2ccf09ed1510f75c7394276313e390ce /misc | |
parent | 51c3ac8e0846b87986915b89df3f7fea5d8a2174 (diff) | |
download | inter-ac063a796e4d9385b6c8dd2c6d5a892378168681.tar.xz |
fontinfo: fix smol py3 syntax issue
Diffstat (limited to 'misc')
-rwxr-xr-x | misc/tools/fontinfo.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/tools/fontinfo.py b/misc/tools/fontinfo.py index eef3d7a58..8975cb3c4 100755 --- a/misc/tools/fontinfo.py +++ b/misc/tools/fontinfo.py @@ -229,9 +229,9 @@ def genGlyphsInfo(tt, outputType, glyphsType=GLYPHS_TYPE_UNKNOWN, glyphsTable=No v += unicodeMap[glyphname] glyphValues.append(v) return glyphValues - + glyphset = tt.getGlyphSet(preferCFF=glyphsType is GLYPHS_TYPE_CFF) - + for glyphname in glyphnames: unicodes = unicodeMap[glyphname] if glyphname in unicodeMap else [] try: @@ -402,7 +402,7 @@ def genFontInfo(fontpath, outputType, withGlyphs=True): glyphsTable = tt["glyf"] # print('glyphs type:', glyphsType, 'flavor:', tt.flavor, 'sfntVersion:', tt.sfntVersion) - if (withGlyphs is not False or outputType is OUTPUT_TYPE_GLYPHLIST) and withGlyphs is not '': + if (withGlyphs != False or outputType is OUTPUT_TYPE_GLYPHLIST) and withGlyphs != '': info['glyphs'] = genGlyphsInfo(tt, outputType, glyphsType, glyphsTable, withGlyphs) # sys.exit(1) |