[unsafe-to-concat] Mark in all other shapers

unsafe_to_break() implies unsafe-to-concat; but setting the flag
manually wasn't.
This commit is contained in:
Behdad Esfahbod 2022-01-22 11:41:30 -07:00
parent 6e345f709d
commit 20031ddbb8
4 changed files with 8 additions and 4 deletions

View File

@ -1213,7 +1213,8 @@ resize_and_retry:
}
}
buffer->clear_glyph_flags (HB_GLYPH_FLAG_UNSAFE_TO_BREAK);
buffer->clear_glyph_flags ();
buffer->unsafe_to_break ();
#undef FAIL

View File

@ -762,7 +762,8 @@ retry_getglyphs:
if (isRightToLeft) hb_buffer_reverse (buffer);
buffer->clear_glyph_flags (HB_GLYPH_FLAG_UNSAFE_TO_BREAK);
buffer->clear_glyph_flags ();
buffer->unsafe_to_break ();
delete [] clusterMap;
delete [] glyphIndices;

View File

@ -439,7 +439,8 @@ _hb_graphite2_shape (hb_shape_plan_t *shape_plan HB_UNUSED,
if (feats) gr_featureval_destroy (feats);
gr_seg_destroy (seg);
buffer->clear_glyph_flags (HB_GLYPH_FLAG_UNSAFE_TO_BREAK);
buffer->clear_glyph_flags ();
buffer->unsafe_to_break ();
return true;
}

View File

@ -878,7 +878,8 @@ retry:
if (backward)
hb_buffer_reverse (buffer);
buffer->clear_glyph_flags (HB_GLYPH_FLAG_UNSAFE_TO_BREAK);
buffer->clear_glyph_flags ();
buffer->unsafe_to_break ();
/* Wow, done! */
return true;