code: public int compareTo(Object object) {
          if (image != null)
              return 0;
          if (object == null) {
              return -1;
          }
          PdfFont pdfFont;
          try {
              pdfFont = (PdfFont) object;
              if (font != pdfFont.font) {
                  return 1;
              }
              if (this.size() != pdfFont.size()) {
                  return 2;
              }
              return 0;
          }
          catch(ClassCastException cce) {
              return -2;
          }
      }
docs: Compares this <CODE>PdfFont</CODE> with another
  
  @param	object	the other <CODE>PdfFont</CODE>
  @return	a value