The "flags" field is an unsigned short, not a byte

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@107 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
Just 2000-06-07 18:07:14 +00:00
parent a063f8b0f6
commit cb317bfad3

View File

@ -12,8 +12,7 @@ headFormat = """
fontRevision: 16.16F
checkSumAdjustment: i
magicNumber: i
x # pad byte
flags: b
flags: H
unitsPerEm: H
created: 8s
modified: 8s
@ -38,6 +37,7 @@ class table__h_e_a_d(DefaultTable.DefaultTable):
# this is quite illegal, but there seem to be fonts out there that do this
assert rest == "\0\0"
self.unitsPerEm = int(self.unitsPerEm)
self.flags = int(self.flags)
self.strings2dates()
def compile(self, ttFont):