fontinfo: fix smol py3 syntax issue

This commit is contained in:
Rasmus Andersson 2021-03-23 17:08:14 -07:00
parent 51c3ac8e08
commit ac063a796e

View file

@ -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)