mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 14:31:10 +01:00
Fix global feature handling
This commit is contained in:
1 parent
e04685ee7b
commit
8af45fda47
1 file changed
+5
-1
+5
-1
@@ -168,8 +168,12 @@ struct hb_mask_allocator_t {
|
||||
if (infos[i].tag != infos[j].tag)
|
||||
infos[++j] = infos[i];
|
||||
else {
|
||||
if (!infos[j].global)
|
||||
if (infos[i].global)
|
||||
infos[j] = infos[i];
|
||||
else {
|
||||
infos[j].global = infos[j].global && (infos[j].value == infos[i].value);
|
||||
infos[j].value = MAX (infos[j].value, infos[i].value);
|
||||
}
|
||||
}
|
||||
count = j + 1;
|
||||
|
||||
|
||||
Reference in new issue
Block a user