code: public void addFont(Font font) {
          if (font.getBaseFont() != null) {
              fonts.add(font);
              return;
          }
          BaseFont bf = font.getCalculatedBaseFont(true);
          Font f2 = new Font(bf, font.getSize(), font.getCalculatedStyle(), font.getColor());
          fonts.add(f2);
      }
docs: Adds a <CODE>Font</CODE> to be searched for valid characters.
  @param font the <CODE>Font</CODE>