code: def _handleLookupType2Format1(subtable):
      
      kerning = {}
      coverage = subtable.Coverage.glyphs
      valueFormat1 = subtable.ValueFormat1
      pairSets = subtable.PairSet
      for index, leftGlyphName in enumerate(coverage):
          pairSet = pairSets[index]
          for pairValueRecord in pairSet.PairValueRecord:
              rightGlyphName = pairValueRecord.SecondGlyph
              if valueFormat1:
                  value = pairValueRecord.Value1
              else:
                  value = pairValueRecord.Value2
              if hasattr(value, "XAdvance"):
                  value = value.XAdvance
                  kerning[leftGlyphName, rightGlyphName] = value
      return kerning
docs: Extract a kerning dictionary from a Lookup Type 2 Format 1.