[kerx] We don't need right_set in machine kerning

This commit is contained in:
Behdad Esfahbod 2025-03-12 20:58:06 -06:00
parent b861b54178
commit 6388ce2224

View file

@ -399,7 +399,7 @@ struct KerxSubTableFormat1
void collect_glyphs (set_t &left_set, set_t &right_set, unsigned num_glyphs) const
{
machine.collect_initial_glyphs (left_set, num_glyphs, *this);
machine.collect_glyphs (right_set, num_glyphs);
//machine.collect_glyphs (right_set, num_glyphs); // right_set is unused for machine kerning
}
protected:
@ -674,7 +674,7 @@ struct KerxSubTableFormat4
void collect_glyphs (set_t &left_set, set_t &right_set, unsigned num_glyphs) const
{
machine.collect_initial_glyphs (left_set, num_glyphs, *this);
machine.collect_glyphs (right_set, num_glyphs);
//machine.collect_glyphs (right_set, num_glyphs); // right_set is unused for machine kerning
}
protected: