[subset] Fix shaping behaviour when pruning empty mark sets

See https://github.com/harfbuzz/harfbuzz/issues/5499
This commit is contained in:
Khaled Hosny committed 2025-08-26 00:45:26 +03:00
1 parent f3de8b4bda
commit b7c55efe0d
5 files changed
+17

No files matched your search

+5
View File
@@ -1387,6 +1387,11 @@ struct Lookup
{
unsigned new_flag = lookupFlag;
new_flag &= ~LookupFlag::UseMarkFilteringSet;
// https://github.com/harfbuzz/harfbuzz/issues/5499
// If we remove UseMarkFilteringSet flag because the set is now empty,
// we need to add IgnoreMarks flag, otherwise the lookup will not
// ignore any marks, which changes the behavior.
new_flag |= LookupFlag::IgnoreMarks;
out->lookupFlag = new_flag;
}
else
Binary file not shown.
@@ -0,0 +1,11 @@
FONTS:
AmiriQuran.ttf
PROFILES:
layout-test.txt
SUBSETS:
U+0649,U+064E,U+0647,U+0627
OPTIONS:
no_fonttools
+1
View File
@@ -33,6 +33,7 @@ tests = [
'layout.context_format2',
'layout.gdef-varstore',
'layout.gdef-attachlist',
'layout.markfilteringset',
'layout.notonastaliqurdu',
'layout.tinos',
'layout.duplicate_features',