code: public float getWidthPointKerned(String text, float fontSize) {
          float size = getWidth(text) * 0.001f * fontSize;
          if (!hasKernPairs())
              return size;
          int len = text.length() - 1;
          int kern = 0;
          char c[] = text.toCharArray();
          for (int k = 0; k < len; ++k) {
              kern += getKerning(c[k], c[k + 1]);
          }
          return size + kern * 0.001f * fontSize;
      }
docs: Gets the width of a <CODE>String</CODE> in points taking kerning
  into account.
  @param text the <CODE>String</CODE> to get the width of
  @param fontSize the font size
  @return the width in points