Don't rely on .cluster in _hb_ot_shape_normalize()
Fixes https://github.com/behdad/harfbuzz/pull/124
This commit is contained in:
parent
9099e48e29
commit
c7dfe316f8
@ -323,7 +323,7 @@ _hb_ot_shape_normalize (const hb_ot_shape_plan_t *plan,
|
|||||||
{
|
{
|
||||||
unsigned int end;
|
unsigned int end;
|
||||||
for (end = buffer->idx + 1; end < count; end++)
|
for (end = buffer->idx + 1; end < count; end++)
|
||||||
if (buffer->cur().cluster != buffer->info[end].cluster)
|
if (likely (!HB_UNICODE_GENERAL_CATEGORY_IS_MARK (_hb_glyph_info_get_general_category (&buffer->info[end]))))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
decompose_cluster (&c, end, might_short_circuit, always_short_circuit);
|
decompose_cluster (&c, end, might_short_circuit, always_short_circuit);
|
||||||
|
Loading…
Reference in New Issue
Block a user