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
This commit is contained in:
parent
981e6675de
commit
fc99ad1513
@ -55,7 +55,7 @@ class table__m_a_x_p(DefaultTable.DefaultTable):
|
|||||||
def recalc(self, ttFont):
|
def recalc(self, ttFont):
|
||||||
"""Recalculate the font bounding box, and most other maxp values except
|
"""Recalculate the font bounding box, and most other maxp values except
|
||||||
for the TT instructions values. Also recalculate the value of bit 1
|
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']
|
glyfTable = ttFont['glyf']
|
||||||
hmtxTable = ttFont['hmtx']
|
hmtxTable = ttFont['hmtx']
|
||||||
@ -91,10 +91,10 @@ class table__m_a_x_p(DefaultTable.DefaultTable):
|
|||||||
maxCompositeContours = max(maxCompositeContours, nContours)
|
maxCompositeContours = max(maxCompositeContours, nContours)
|
||||||
maxComponentElements = max(maxComponentElements, len(g.components))
|
maxComponentElements = max(maxComponentElements, len(g.components))
|
||||||
maxComponentDepth = max(maxComponentDepth, componentDepth)
|
maxComponentDepth = max(maxComponentDepth, componentDepth)
|
||||||
self.xMin = xMin
|
headTable.xMin = xMin
|
||||||
self.yMin = yMin
|
headTable.yMin = yMin
|
||||||
self.xMax = xMax
|
headTable.xMax = xMax
|
||||||
self.yMax = yMax
|
headTable.yMax = yMax
|
||||||
self.maxPoints = maxPoints
|
self.maxPoints = maxPoints
|
||||||
self.maxContours = maxContours
|
self.maxContours = maxContours
|
||||||
self.maxCompositePoints = maxCompositePoints
|
self.maxCompositePoints = maxCompositePoints
|
||||||
|
Loading…
x
Reference in New Issue
Block a user