[arabic] Fix cluster merging
This commit is contained in:
parent
c2545b9215
commit
5f50f8837f
|
@ -676,7 +676,7 @@ reorder_marks_arabic (const hb_ot_shape_plan_t *plan,
|
|||
DEBUG_MSG (ARABIC, buffer, "Shifting %d's: %d %d\n", cc, i, j);
|
||||
hb_glyph_info_t temp[HB_OT_SHAPE_COMPLEX_MAX_COMBINING_MARKS];
|
||||
assert (j - i <= ARRAY_LENGTH (temp));
|
||||
buffer->merge_out_clusters (start, j);
|
||||
buffer->merge_clusters (start, j);
|
||||
memmove (temp, &info[i], (j - i) * sizeof (hb_glyph_info_t));
|
||||
memmove (&info[start + j - i], &info[start], (i - start) * sizeof (hb_glyph_info_t));
|
||||
memmove (&info[start], temp, (j - i) * sizeof (hb_glyph_info_t));
|
||||
|
|
Loading…
Reference in New Issue