This commit is contained in:
Behdad Esfahbod 2022-01-22 11:40:37 -07:00
parent 374a6f186d
commit 6e345f709d
2 changed files with 9 additions and 9 deletions

View File

@ -435,28 +435,28 @@ struct hb_buffer_t
}
}
void unsafe_to_break (unsigned int start, unsigned int end)
void unsafe_to_break (unsigned int start = 0, unsigned int end = -1)
{
set_glyph_flags (HB_GLYPH_FLAG_UNSAFE_TO_BREAK | HB_GLYPH_FLAG_UNSAFE_TO_CONCAT,
start, end,
start = start, end = end,
true);
}
void unsafe_to_concat (unsigned int start, unsigned int end)
void unsafe_to_concat (unsigned int start = 0, unsigned int end = -1)
{
set_glyph_flags (HB_GLYPH_FLAG_UNSAFE_TO_CONCAT,
start, end,
start = start, end = end,
true);
}
void unsafe_to_break_from_outbuffer (unsigned int start, unsigned int end)
void unsafe_to_break_from_outbuffer (unsigned int start = 0, unsigned int end = -1)
{
set_glyph_flags (HB_GLYPH_FLAG_UNSAFE_TO_BREAK | HB_GLYPH_FLAG_UNSAFE_TO_CONCAT,
start, end,
start = start, end = end,
true, true);
}
void unsafe_to_concat_from_outbuffer (unsigned int start, unsigned int end)
void unsafe_to_concat_from_outbuffer (unsigned int start = 0, unsigned int end = -1)
{
set_glyph_flags (HB_GLYPH_FLAG_UNSAFE_TO_CONCAT,
start, end,
start = start, end = end,
false, true);
}

View File

@ -52,7 +52,7 @@ struct hb_kern_machine_t
if (!buffer->message (font, "start kern"))
return;
buffer->set_glyph_flags (HB_GLYPH_FLAG_UNSAFE_TO_CONCAT);
buffer->unsafe_to_concat ();
OT::hb_ot_apply_context_t c (1, font, buffer);
c.set_lookup_mask (kern_mask);
c.set_lookup_props (OT::LookupFlag::IgnoreMarks);