[gpos] in PairPos, always advance next-glyph by one only

This goes against the spec.

https://github.com/harfbuzz/harfbuzz/issues/3824
This commit is contained in:
Behdad Esfahbod 2022-09-21 12:22:41 -06:00
parent 56c4670935
commit 7a76222c20
2 changed files with 0 additions and 4 deletions

View File

@ -243,8 +243,6 @@ struct PairPosFormat2_4
buffer->idx = skippy_iter.idx; buffer->idx = skippy_iter.idx;
if (len2)
buffer->idx++;
return_trace (true); return_trace (true);
} }

View File

@ -128,8 +128,6 @@ struct PairSet
if (applied_first || applied_second) if (applied_first || applied_second)
buffer->unsafe_to_break (buffer->idx, pos + 1); buffer->unsafe_to_break (buffer->idx, pos + 1);
if (len2)
pos++;
buffer->idx = pos; buffer->idx = pos;
return_trace (true); return_trace (true);