dwrite: Mark features that were not found.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2021-01-22 15:25:18 +03:00 committed by Alexandre Julliard
parent f064acbdd9
commit 3c0836bfa3
2 changed files with 3 additions and 0 deletions

View File

@ -544,6 +544,7 @@ enum shaping_feature_flags
FEATURE_MANUAL_ZWJ = 0x8,
FEATURE_MANUAL_JOINERS = FEATURE_MANUAL_ZWNJ | FEATURE_MANUAL_ZWJ,
FEATURE_HAS_FALLBACK = 0x10,
FEATURE_NEEDS_FALLBACK = 0x20,
};
struct shaping_feature

View File

@ -4568,6 +4568,8 @@ static void opentype_layout_collect_lookups(struct scriptshaping_context *contex
next_bit += bits_needed;
context->global_mask |= (feature->default_value << feature->shift) & feature->mask;
}
if (!found)
feature->flags |= FEATURE_NEEDS_FALLBACK;
}
for (stage = 0; stage <= features->stage; ++stage)