- glyphs[mpreIndex + i] = glyphs[mpreLimit + i];
- charIndices[mpreIndex + i] = charIndices[mpreLimit + i];
+ LEGlyphID glyph = glyphStorage[mpreLimit + i];
+ le_int32 charIndex = glyphStorage.getCharIndex(mpreLimit + i, success);
+
+ glyphStorage[mpreIndex + i] = glyph;
+ glyphStorage.setCharIndex(mpreIndex + i, charIndex, success);