From 6e345f709d4888ab10ed22afffb6661d695e052f Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 22 Jan 2022 11:40:37 -0700 Subject: [PATCH] Cosmetic --- src/hb-buffer.hh | 16 ++++++++-------- src/hb-kern.hh | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/hb-buffer.hh b/src/hb-buffer.hh index b92c87693..879802134 100644 --- a/src/hb-buffer.hh +++ b/src/hb-buffer.hh @@ -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); } diff --git a/src/hb-kern.hh b/src/hb-kern.hh index 943631932..9ea945cae 100644 --- a/src/hb-kern.hh +++ b/src/hb-kern.hh @@ -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);