From 43fa4be9483ec7cfc2f3c183be8bed746862b7f3 Mon Sep 17 00:00:00 2001 From: Just Date: Wed, 11 Oct 2000 18:04:03 +0000 Subject: [PATCH] added workaround for Py 1.5.1 compatibility git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@121 4cde692c-a291-49d1-8350-778aa11640f8 --- Lib/fontTools/ttLib/tables/_c_m_a_p.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/fontTools/ttLib/tables/_c_m_a_p.py b/Lib/fontTools/ttLib/tables/_c_m_a_p.py index 57b81c474..d6fdfe78c 100644 --- a/Lib/fontTools/ttLib/tables/_c_m_a_p.py +++ b/Lib/fontTools/ttLib/tables/_c_m_a_p.py @@ -324,7 +324,7 @@ class cmap_format_6(CmapSubtable): data = data[10:] #assert len(data) == 2 * entryCount # XXX not true in Apple's Helvetica!!! glyphIndexArray = array.array("H") - glyphIndexArray.fromstring(data[:2 * entryCount]) + glyphIndexArray.fromstring(data[:2 * int(entryCount)]) if ttLib.endian <> "big": glyphIndexArray.byteswap() self.cmap = cmap = {}