fixed post table format 1 error: even though the glyph order is fixed,

that doesn't mean all glyphs in the standard order are there.


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@174 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
jvr 2001-11-05 19:32:30 +00:00
parent bad5dd2eee
commit c2b05ccf8c

View File

@ -62,7 +62,7 @@ class table__p_o_s_t(DefaultTable.DefaultTable):
return glyphOrder
def decode_format_1_0(self, data, ttFont):
self.glyphOrder = standardGlyphOrder[:]
self.glyphOrder = standardGlyphOrder[:ttFont["maxp"].numGlyphs]
def decode_format_2_0(self, data, ttFont):
numGlyphs, = struct.unpack(">H", data[:2])