From bb54e1047d2d501459bb366e47f24f51824c8db7 Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Tue, 16 Mar 2021 13:19:26 -0700 Subject: [PATCH] [subset] Also filter class1 by coverage when collecting variation indices for PairPosFormat2. --- src/hb-ot-layout-gpos-table.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-layout-gpos-table.hh b/src/hb-ot-layout-gpos-table.hh index 19060c762..1157d16a4 100644 --- a/src/hb-ot-layout-gpos-table.hh +++ b/src/hb-ot-layout-gpos-table.hh @@ -1358,7 +1358,7 @@ struct PairPosFormat2 if ((!valueFormat1.has_device ()) && (!valueFormat2.has_device ())) return; hb_set_t class1_set, class2_set; - for (const unsigned cp : c->glyph_set->iter ()) + for (const unsigned cp : + c->glyph_set->iter () | hb_filter (this + coverage)) { unsigned klass1 = (this+classDef1).get (cp); unsigned klass2 = (this+classDef2).get (cp);