From abb9d149ed75a36be38f46ef376db8cfc8e65633 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 20 Nov 2018 00:24:28 -0500 Subject: [PATCH] [subset] Fix subsetting of VarStore Was *so* broken. Ouch! Reported by Nyshadh, reproduced with Comfortaa-Regular.ttf. --- Lib/fontTools/varLib/varStore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/fontTools/varLib/varStore.py b/Lib/fontTools/varLib/varStore.py index 6afedf6eb..ae885d3ea 100644 --- a/Lib/fontTools/varLib/varStore.py +++ b/Lib/fontTools/varLib/varStore.py @@ -204,7 +204,7 @@ def VarStore_subset_varidxes(self, varIdxes, optimize=True): usedMinors = used.get(major) if usedMinors is None: continue - newMajor = varDataMap[major] = len(newVarData) + newMajor = len(newVarData) newVarData.append(data) items = data.Item