[avar2] Revert unneeded change to VarIdxMap

We don't use VarIdxMap anymore.
This commit is contained in:
Behdad Esfahbod 2023-03-10 11:36:31 -07:00
parent e9e55b29f7
commit 85036d5d83

View File

@ -711,9 +711,8 @@ class VarIdxMap(BaseTable):
if mapping is None:
mapping = self.mapping = {}
if type(mapping) == dict:
glyphOrder = font.getGlyphOrder()
mapping = [mapping[g] for g in glyphOrder]
glyphOrder = font.getGlyphOrder()
mapping = [mapping[g] for g in glyphOrder]
while len(mapping) > 1 and mapping[-2] == mapping[-1]:
del mapping[-1]