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
This commit is contained in:
parent
dccbd3154b
commit
43fa4be948
@ -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 = {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user