From c2b05ccf8ce7b8ae80e06b667152398ebd4c4872 Mon Sep 17 00:00:00 2001 From: jvr Date: Mon, 5 Nov 2001 19:32:30 +0000 Subject: [PATCH] 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 --- Lib/fontTools/ttLib/tables/_p_o_s_t.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/fontTools/ttLib/tables/_p_o_s_t.py b/Lib/fontTools/ttLib/tables/_p_o_s_t.py index 82fdb499f..609ec706e 100644 --- a/Lib/fontTools/ttLib/tables/_p_o_s_t.py +++ b/Lib/fontTools/ttLib/tables/_p_o_s_t.py @@ -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])