Fix 1762552: traceback on amd64 with DejaVuSans.ttf
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@514 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
parent
4acb76de2e
commit
9728601b44
@ -28,12 +28,12 @@ class table__g_l_y_f(DefaultTable.DefaultTable):
|
||||
|
||||
def decompile(self, data, ttFont):
|
||||
loca = ttFont['loca']
|
||||
last = loca[0]
|
||||
last = int(loca[0])
|
||||
self.glyphs = {}
|
||||
self.glyphOrder = glyphOrder = ttFont.getGlyphOrder()
|
||||
for i in range(0, len(loca)-1):
|
||||
glyphName = glyphOrder[i]
|
||||
next = loca[i+1]
|
||||
next = int(loca[i+1])
|
||||
glyphdata = data[last:next]
|
||||
if len(glyphdata) <> (next - last):
|
||||
raise ttLib.TTLibError, "not enough 'glyf' table data"
|
||||
|
Loading…
x
Reference in New Issue
Block a user