diff --git a/src/hb-coretext.cc b/src/hb-coretext.cc index 24075e146..5f383064c 100644 --- a/src/hb-coretext.cc +++ b/src/hb-coretext.cc @@ -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 diff --git a/src/hb-directwrite.cc b/src/hb-directwrite.cc index dea87b8cd..f177ff31c 100644 --- a/src/hb-directwrite.cc +++ b/src/hb-directwrite.cc @@ -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; diff --git a/src/hb-graphite2.cc b/src/hb-graphite2.cc index 42420ac0b..63dc18b46 100644 --- a/src/hb-graphite2.cc +++ b/src/hb-graphite2.cc @@ -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; } diff --git a/src/hb-uniscribe.cc b/src/hb-uniscribe.cc index 0e5a114f7..50f71ce9c 100644 --- a/src/hb-uniscribe.cc +++ b/src/hb-uniscribe.cc @@ -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;