mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 22:41:10 +01:00
[GPOS.PairPos] Adjust unsafe-to-break for non-zero ValueFormat2
Fixes https://github.com/harfbuzz/harfbuzz/issues/3824
This commit is contained in:
1 parent
85e0be1357
commit
ea63e95e4c
2 files changed
+10
-1
No files matched your search
@@ -244,7 +244,11 @@ struct PairPosFormat2_4
|
||||
|
||||
buffer->idx = skippy_iter.idx;
|
||||
if (len2)
|
||||
{
|
||||
buffer->idx++;
|
||||
// https://github.com/harfbuzz/harfbuzz/issues/3824
|
||||
buffer->unsafe_to_break (buffer->idx - 1, buffer->idx + 1);
|
||||
}
|
||||
|
||||
return_trace (true);
|
||||
}
|
||||
|
||||
@@ -128,8 +128,13 @@ struct PairSet
|
||||
|
||||
if (applied_first || applied_second)
|
||||
buffer->unsafe_to_break (buffer->idx, pos + 1);
|
||||
|
||||
if (len2)
|
||||
pos++;
|
||||
{
|
||||
pos++;
|
||||
// https://github.com/harfbuzz/harfbuzz/issues/3824
|
||||
buffer->unsafe_to_break (pos - 1, pos + 1);
|
||||
}
|
||||
|
||||
buffer->idx = pos;
|
||||
return_trace (true);
|
||||
|
||||
Reference in new issue
Block a user