Skip to content

Commit

Permalink
[cffLib] Make sure we compile VarStore
Browse files Browse the repository at this point in the history
Ouch. Took me a while to find this bug. If data is set,
it will be reused and no compilation happens.
  • Loading branch information
behdad committed May 14, 2024
1 parent ce78d2c commit 9f51fac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Lib/fontTools/cffLib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1050,6 +1050,7 @@ def decompile(self):
reader = OTTableReader(self.data, globalState)
self.otVarStore = ot.VarStore()
self.otVarStore.decompile(reader, self.font)
self.data = None
return self

def compile(self):
Expand Down

0 comments on commit 9f51fac

Please sign in to comment.