[aat] Optimize feature-range application

This commit is contained in:
Behdad Esfahbod 2023-01-10 13:31:58 -07:00
parent dd42939e31
commit bfd7548e24
1 changed files with 2 additions and 1 deletions

View File

@ -1021,7 +1021,8 @@ struct Chain
{
bool reverse;
if (c->range_flags->length == 1 && !(subtable->subFeatureFlags & (*c->range_flags)[0].flags))
if (hb_none (hb_iter (c->range_flags) |
hb_map ([&subtable] (const hb_aat_map_t::range_flags_t _) -> bool { return subtable->subFeatureFlags & (_.flags); })))
goto skip;
c->subtable_flags = subtable->subFeatureFlags;