recalc numGlyphs upon writing

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@404 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
jvr 2003-08-22 19:34:48 +00:00
parent d407973545
commit 07dd0e4504

View File

@ -43,6 +43,7 @@ class table__m_a_x_p(DefaultTable.DefaultTable):
self.recalc(ttFont)
else:
pass # CFF
self.numGlyphs = len(ttFont.getGlyphOrder())
if self.tableVersion != 0x00005000:
self.tableVersion = 0x00010000
data = sstruct.pack(maxpFormat_0_5, self)