[subset] Also filter class1 by coverage when collecting variation indices for PairPosFormat2.

This commit is contained in:
Garret Rieger 2021-03-16 13:19:26 -07:00
parent 190b7a98f8
commit bb54e1047d
1 changed files with 1 additions and 1 deletions

View File

@ -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);