[ttVarGlyphSet-cff] Handle non-variable fonts

This commit is contained in:
Behdad Esfahbod 2022-08-26 21:20:56 -06:00
parent 683308abb5
commit 9fe1f8c73e

View File

@ -705,7 +705,7 @@ class TTFont(object):
("glyf" not in self and any(tb in self for tb in ["CFF ", "CFF2"]))):
table_tag = "CFF2" if "CFF2" in self else "CFF "
glyphs = list(self[table_tag].cff.values())[0].CharStrings
if location:
if location and 'fvar' in self:
glyphs = _TTVarGlyphSet(self, glyphs, _TTVarGlyphCFF,
location, normalized)
else: