oops, look at 'normalized' flag again

This commit is contained in:
Just van Rossum 2022-08-29 22:30:43 +02:00
parent 0c68a5621a
commit cca0faae74

View File

@ -700,8 +700,10 @@ class TTFont(object):
as in the normalized (-1..+1) space, otherwise it is in the font's defined as in the normalized (-1..+1) space, otherwise it is in the font's defined
axes space. axes space.
""" """
if location: if location and "fvar" not in self:
location = _normalizeLocation(location, self) if "fvar" in self else None location = None
if location and not normalized:
location = _normalizeLocation(location, self)
if ("CFF " in self or "CFF2" in self) and (preferCFF or "glyf" not in self): if ("CFF " in self or "CFF2" in self) and (preferCFF or "glyf" not in self):
return _TTGlyphSetCFF(self, location) return _TTGlyphSetCFF(self, location)
elif "glyf" in self: elif "glyf" in self: