[morx] Minor

This commit is contained in:
Behdad Esfahbod 2017-06-07 15:22:46 +02:00
parent 7ee4fc8896
commit 338374e170
2 changed files with 4 additions and 0 deletions

View File

@ -233,6 +233,9 @@ class OTTableWriter(object):
def __getitem__(self, name):
return self.localState[name]
def __delitem__(self, name):
del self.localState[name]
# assembler interface
def getDataLength(self):

View File

@ -434,6 +434,7 @@ class StructWithLength(Struct):
def write(self, writer, font, tableDict, value, repeatIndex=None):
value.compile(writer, font)
writer['StructLength'].setValue(writer.getDataLength())
del writer['StructLength']
class Table(Struct):