code: public int compareTo(Object object) {
          if (object == null) {
              return -1;
          }
          if(object instanceof RtfFont) {
              if(this.getFontName().compareTo(((RtfFont) object).getFontName()) != 0) {
                  return 1;
              } else {
                  return super.compareTo(object);
              }
          } else if(object instanceof Font) {
              return super.compareTo(object);
          } else {
              return -3;
          }
      }
docs: Compares this <code>RtfFont</code> to either a {@link com.lowagie.text.Font} or
  an <code>RtfFont</code>.
  
  @since 2.1.0