[cffLib] Make sure we compile VarStore

Ouch. Took me a while to find this bug. If data is set,
it will be reused and no compilation happens.
This commit is contained in:
Behdad Esfahbod 2024-05-13 22:45:54 -06:00
parent ce78d2c88f
commit 9f51fac512

View File

@ -1050,6 +1050,7 @@ class VarStoreData(object):
reader = OTTableReader(self.data, globalState)
self.otVarStore = ot.VarStore()
self.otVarStore.decompile(reader, self.font)
self.data = None
return self
def compile(self):