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:
parent
bad5dd2eee
commit
c2b05ccf8c
@ -62,7 +62,7 @@ class table__p_o_s_t(DefaultTable.DefaultTable):
|
|||||||
return glyphOrder
|
return glyphOrder
|
||||||
|
|
||||||
def decode_format_1_0(self, data, ttFont):
|
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):
|
def decode_format_2_0(self, data, ttFont):
|
||||||
numGlyphs, = struct.unpack(">H", data[:2])
|
numGlyphs, = struct.unpack(">H", data[:2])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user