protected boolean isReorderedMark(GlyphDefinitionTable gdef, int[] glyphs, int[] unscaledWidths, int index, int[] pa) {
pa = (pa != null) ? pa : new int[1];
- int paindex = Math.min(pa.length - 1, index);
- return gdef.isGlyphClass(glyphs[index], GlyphDefinitionTable.GLYPH_CLASS_MARK) && pa[paindex] != 0;
+ return gdef.isGlyphClass(glyphs[index], GlyphDefinitionTable.GLYPH_CLASS_MARK) && pa[0] != 0;
}
}
int[][] gpa = new int[2][2];
gpa[1][1] = 1;
String actual = getFont().reorderCombiningMarks(in, gpa, OTFScript.DEFAULT, null, null).toString();
- Assert.assertEquals(actual.charAt(0), 803);
+ Assert.assertEquals(actual.charAt(0), 57344);
}
private MultiByteFont getFont() {