From f6b1563e0dc4e396264d62598cac856b0959c0f7 Mon Sep 17 00:00:00 2001 From: Just Date: Wed, 23 Aug 2000 12:33:14 +0000 Subject: [PATCH] removed an assert that was too strict git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@116 4cde692c-a291-49d1-8350-778aa11640f8 --- Lib/fontTools/ttLib/tables/_c_m_a_p.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/fontTools/ttLib/tables/_c_m_a_p.py b/Lib/fontTools/ttLib/tables/_c_m_a_p.py index dfb12ec06..57b81c474 100644 --- a/Lib/fontTools/ttLib/tables/_c_m_a_p.py +++ b/Lib/fontTools/ttLib/tables/_c_m_a_p.py @@ -322,9 +322,9 @@ class cmap_format_6(CmapSubtable): firstCode = int(firstCode) self.version = int(version) data = data[10:] - assert len(data) == 2 * entryCount + #assert len(data) == 2 * entryCount # XXX not true in Apple's Helvetica!!! glyphIndexArray = array.array("H") - glyphIndexArray.fromstring(data) + glyphIndexArray.fromstring(data[:2 * entryCount]) if ttLib.endian <> "big": glyphIndexArray.byteswap() self.cmap = cmap = {}