(lookup_gsub): Fix updating gidx.
OTF_Glyph temp = *g;
memmove (g, g + 1, sizeof (OTF_Glyph) * (non_ignored_idx - i));
+ temp.f.index.from = from_idx;
+ temp.f.index.to = to_idx;
gstring->glyphs[non_ignored_idx--] = temp;
len--;
}
continue;
gstring_subst (gstring, gidx, gidx + 1 + n, flag,
&lig->LigGlyph, 1);
- gidx++;
+ gidx += lig->CompCount;
break;
}
}