[syllabic] Actually clear syllables

Such that they don't affect GPOS.

I broke this in 044d7a06db.
This commit is contained in:
Behdad Esfahbod 2023-04-26 10:17:37 -06:00
parent 9ee7c2ea63
commit c5f3b3feb1

View file

@ -92,6 +92,10 @@ hb_syllabic_clear_var (const hb_ot_shape_plan_t *plan,
hb_font_t *font,
hb_buffer_t *buffer)
{
unsigned count = buffer->len;
hb_glyph_info_t *info = buffer->info;
for (unsigned i = 0; i < count; i++)
info[i].syllable() = 0;
HB_BUFFER_DEALLOCATE_VAR (buffer, syllable);
return false;
}