mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 14:01:10 +01:00
[subset] Fix shaping behaviour when pruning empty mark sets
See https://github.com/harfbuzz/harfbuzz/issues/5499
This commit is contained in:
1 parent
f3de8b4bda
commit
b7c55efe0d
5 files changed
+17
No files matched your search
@@ -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
|
||||
|
||||
BIN
Binary file not shown.
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
|
||||
@@ -33,6 +33,7 @@ tests = [
|
||||
'layout.context_format2',
|
||||
'layout.gdef-varstore',
|
||||
'layout.gdef-attachlist',
|
||||
'layout.markfilteringset',
|
||||
'layout.notonastaliqurdu',
|
||||
'layout.tinos',
|
||||
'layout.duplicate_features',
|
||||
|
||||
Reference in new issue
Block a user