[arabic/stch] Zero advances

This was working for our test suite because those glyphs were
declared mark and their advances zeroed automatically. But is
not the case in eg. the font posted at:

https://github.com/harfbuzz/harfbuzz/issues/4369
This commit is contained in:
Behdad Esfahbod 2023-08-08 12:17:25 -06:00
parent 0ba4d539b3
commit 40bfabd1f9

View file

@ -599,6 +599,7 @@ apply_stch (const hb_ot_shape_plan_t *plan HB_UNUSED,
DEBUG_MSG (ARABIC, nullptr, "appending %u copies of glyph %u; j=%u",
repeat, info[k - 1].codepoint, j);
pos[k - 1].x_advance = 0;
for (unsigned int n = 0; n < repeat; n++)
{
x_offset -= width;