From cb317bfad3213dc009e8150149d5ce9a70356f10 Mon Sep 17 00:00:00 2001 From: Just Date: Wed, 7 Jun 2000 18:07:14 +0000 Subject: [PATCH] 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 --- Lib/fontTools/ttLib/tables/_h_e_a_d.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/fontTools/ttLib/tables/_h_e_a_d.py b/Lib/fontTools/ttLib/tables/_h_e_a_d.py index 3ba88c5c1..7591742e7 100644 --- a/Lib/fontTools/ttLib/tables/_h_e_a_d.py +++ b/Lib/fontTools/ttLib/tables/_h_e_a_d.py @@ -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):