otTables: fix IndexError while pruning of HVAR pre-write
This commit is contained in:
parent
a523a69716
commit
6b6c34ab1a
@ -562,7 +562,7 @@ class VarIdxMap(BaseTable):
|
||||
|
||||
glyphOrder = font.getGlyphOrder()
|
||||
mapping = [mapping[g] for g in glyphOrder]
|
||||
while mapping and mapping[-2] == mapping[-1]:
|
||||
while len(mapping) > 1 and mapping[-2] == mapping[-1]:
|
||||
del mapping[-1]
|
||||
|
||||
rawTable = { 'mapping': mapping }
|
||||
|
Loading…
x
Reference in New Issue
Block a user