code: public int getKerning(int char1, int char2)
      {
          String first = GlyphList.unicodeToName(char1);
          if (first == null)
              return 0;
          String second = GlyphList.unicodeToName(char2);
          if (second == null)
              return 0;
          Object obj[] = (Object[])KernPairs.get(first);
          if (obj == null)
              return 0;
          for (int k = 0; k < obj.length; k += 2) {
              if (second.equals(obj[k]))
                  return ((Integer)obj[k + 1]).intValue();
          }
          return 0;
      }
docs: Gets the kerning between two Unicode characters. The characters
  are converted to names and this names are used to find the kerning
  pairs in the <CODE>HashMap</CODE> <CODE>KernPairs</CODE>.
  @param char1 the first char
  @param char2 the second char
  @return the kerning to be applied