This commit is contained in:
Behdad Esfahbod 2019-01-09 13:28:00 -08:00
parent 471e96e55d
commit f4cbb1ee0c
1 changed files with 5 additions and 3 deletions

View File

@ -135,9 +135,11 @@ struct SingleSubstFormat2
void closure (hb_closure_context_t *c) const void closure (hb_closure_context_t *c) const
{ {
for (auto it = hb_zip (this+coverage, substitute); it; ++it) for (auto it = hb_zip (this+coverage, substitute)
if (c->glyphs->has (it->first)) | hb_filter (*c->glyphs, hb_first)
c->output->add (it->second); | hb_map (hb_second);
it; ++it)
c->output->add (*it);
} }
void collect_glyphs (hb_collect_glyphs_context_t *c) const void collect_glyphs (hb_collect_glyphs_context_t *c) const