Fixes an issue found while running fonttools instancer on a COLR font whose glyphs had previously been reordered by maximum_color (in order to add an OT-SVG table to it).
We also need to sort PairPosFormat1.PairSet.PairValueRecord array by the glyph ID of the PairValueRecord.SecondGlyph.
Fixes an issue found while running fonttools instancer on a COLR font whose glyphs had previously been reordered by maximum_color (in order to add an OT-SVG table to it).
We also need to sort PairPosFormat1.PairSet.PairValueRecord array by the glyph ID of the PairValueRecord.SecondGlyph.
See: https://github.com/google/fonts/pull/5129 https://docs.microsoft.com/en-us/typography/opentype/spec/gpos#pair-adjustment-positioning-format-1-adjustments-for-glyph-pairs