Cosmetic
This commit is contained in:
parent
374a6f186d
commit
6e345f709d
|
@ -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,
|
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 (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,
|
set_glyph_flags (HB_GLYPH_FLAG_UNSAFE_TO_CONCAT,
|
||||||
start, end,
|
start = start, end = end,
|
||||||
true);
|
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,
|
set_glyph_flags (HB_GLYPH_FLAG_UNSAFE_TO_BREAK | HB_GLYPH_FLAG_UNSAFE_TO_CONCAT,
|
||||||
start, end,
|
start = start, end = end,
|
||||||
true, true);
|
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,
|
set_glyph_flags (HB_GLYPH_FLAG_UNSAFE_TO_CONCAT,
|
||||||
start, end,
|
start = start, end = end,
|
||||||
false, true);
|
false, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ struct hb_kern_machine_t
|
||||||
if (!buffer->message (font, "start kern"))
|
if (!buffer->message (font, "start kern"))
|
||||||
return;
|
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);
|
OT::hb_ot_apply_context_t c (1, font, buffer);
|
||||||
c.set_lookup_mask (kern_mask);
|
c.set_lookup_mask (kern_mask);
|
||||||
c.set_lookup_props (OT::LookupFlag::IgnoreMarks);
|
c.set_lookup_props (OT::LookupFlag::IgnoreMarks);
|
||||||
|
|
Loading…
Reference in New Issue