This commit is contained in:
Rasmus Andersson 2018-08-31 22:00:46 -07:00
parent dce366825e
commit b468331939

View file

@ -215,7 +215,6 @@ def genGlyphsInfo(tt, outputType, glyphsType=GLYPHS_TYPE_UNKNOWN, glyphsTable=No
unicodeMap[glyphname] = [cp]
glyphValues = []
glyphset = tt.getGlyphSet(preferCFF=glyphsType is GLYPHS_TYPE_CFF)
glyphnames = tt.getGlyphOrder() if glyphnameFilter is None else glyphnameFilter
@ -228,6 +227,8 @@ def genGlyphsInfo(tt, outputType, glyphsType=GLYPHS_TYPE_UNKNOWN, glyphsTable=No
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: