From fc99ad1513ca5443a29f1cc99df6016325e8dcbb Mon Sep 17 00:00:00 2001 From: Petr Date: Wed, 18 Oct 2000 22:27:47 +0000 Subject: [PATCH] doh! font bounding box goes to the head table, not maxp itself. git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@125 4cde692c-a291-49d1-8350-778aa11640f8 --- Lib/fontTools/ttLib/tables/_m_a_x_p.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Lib/fontTools/ttLib/tables/_m_a_x_p.py b/Lib/fontTools/ttLib/tables/_m_a_x_p.py index 07a355056..761e1b875 100644 --- a/Lib/fontTools/ttLib/tables/_m_a_x_p.py +++ b/Lib/fontTools/ttLib/tables/_m_a_x_p.py @@ -55,7 +55,7 @@ class table__m_a_x_p(DefaultTable.DefaultTable): def recalc(self, ttFont): """Recalculate the font bounding box, and most other maxp values except for the TT instructions values. Also recalculate the value of bit 1 - of the flags field of the 'head' table. + of the flags field and the font bounding box of the 'head' table. """ glyfTable = ttFont['glyf'] hmtxTable = ttFont['hmtx'] @@ -91,10 +91,10 @@ class table__m_a_x_p(DefaultTable.DefaultTable): maxCompositeContours = max(maxCompositeContours, nContours) maxComponentElements = max(maxComponentElements, len(g.components)) maxComponentDepth = max(maxComponentDepth, componentDepth) - self.xMin = xMin - self.yMin = yMin - self.xMax = xMax - self.yMax = yMax + headTable.xMin = xMin + headTable.yMin = yMin + headTable.xMax = xMax + headTable.yMax = yMax self.maxPoints = maxPoints self.maxContours = maxContours self.maxCompositePoints = maxCompositePoints