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
This commit is contained in:
Just 2000-08-23 12:33:14 +00:00
parent c91a95189a
commit f6b1563e0d

View File

@ -322,9 +322,9 @@ class cmap_format_6(CmapSubtable):
firstCode = int(firstCode) firstCode = int(firstCode)
self.version = int(version) self.version = int(version)
data = data[10:] 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 = array.array("H")
glyphIndexArray.fromstring(data) glyphIndexArray.fromstring(data[:2 * entryCount])
if ttLib.endian <> "big": if ttLib.endian <> "big":
glyphIndexArray.byteswap() glyphIndexArray.byteswap()
self.cmap = cmap = {} self.cmap = cmap = {}