[subset] Handle a null-offset error in MarkLigPos

As reported by @rsheeter.
This commit is contained in:
Behdad Esfahbod 2023-10-23 21:38:51 -06:00
parent 6e1f55b0c8
commit 1d0f3c27fc

View File

@ -870,6 +870,7 @@ def subset_glyphs(self, s):
for m in self.MarkArray.MarkRecord:
m.Class = class_indices.index(m.Class)
for l in self.LigatureArray.LigatureAttach:
if l is None: continue
for c in l.ComponentRecord:
c.LigatureAnchor = _list_subset(c.LigatureAnchor, class_indices)
return bool(