From f4cbb1ee0c7e1c2911c3676936e1bb571f6b255f Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 9 Jan 2019 13:28:00 -0800 Subject: [PATCH] WIP --- src/hb-ot-layout-gsub-table.hh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/hb-ot-layout-gsub-table.hh b/src/hb-ot-layout-gsub-table.hh index 527596a8d..92751f51f 100644 --- a/src/hb-ot-layout-gsub-table.hh +++ b/src/hb-ot-layout-gsub-table.hh @@ -135,9 +135,11 @@ struct SingleSubstFormat2 void closure (hb_closure_context_t *c) const { - for (auto it = hb_zip (this+coverage, substitute); it; ++it) - if (c->glyphs->has (it->first)) - c->output->add (it->second); + for (auto it = hb_zip (this+coverage, substitute) + | hb_filter (*c->glyphs, hb_first) + | hb_map (hb_second); + it; ++it) + c->output->add (*it); } void collect_glyphs (hb_collect_glyphs_context_t *c) const