Merge pull request #337 from anthrotype/vhea

[_v_h_e_a] don't recalc vertical bounds if recalcBBoxes == False
This commit is contained in:
Cosimo Lupo 2015-08-17 10:33:38 +01:00
commit aa63a059b1

View File

@ -35,7 +35,8 @@ class table__v_h_e_a(DefaultTable.DefaultTable):
sstruct.unpack(vheaFormat, data, self)
def compile(self, ttFont):
self.recalc(ttFont)
if ttFont.isLoaded('glyf') and ttFont.recalcBBoxes:
self.recalc(ttFont)
return sstruct.pack(vheaFormat, self)
def recalc(self, ttFont):