[shape] Unsafe-to-concat around fraction slash

This commit is contained in:
Behdad Esfahbod 2023-07-30 11:28:59 -06:00
parent f19ca24a8e
commit 35a026c89a

View file

@ -766,7 +766,13 @@ hb_ot_shape_setup_masks_fraction (const hb_ot_shape_context_t *c)
HB_UNICODE_GENERAL_CATEGORY_DECIMAL_NUMBER)
end++;
if (start == i || end == i + 1)
{
if (start == i)
buffer->unsafe_to_concat (start, start + 1);
if (end == i + 1)
buffer->unsafe_to_concat (end - 1, end);
continue;
}
buffer->unsafe_to_break (start, end);