code: public void setFontAndSize(BaseFont bf, float size) {
          checkWriter();
          state.size = size;
          if (bf.getFontType() == BaseFont.FONT_TYPE_DOCUMENT) {
              state.fontDetails = new FontDetails(null, ((DocumentFont)bf).getIndirectReference(), bf);
          }
          else
              state.fontDetails = writer.addSimple(bf);
          PdfName psn = (PdfName)stdFieldFontNames.get(bf.getPostscriptFontName());
          if (psn == null) {
              if (bf.isSubset() && bf.getFontType() == BaseFont.FONT_TYPE_TTUNI)
                  psn = state.fontDetails.getFontName();
              else {
                  psn = new PdfName(bf.getPostscriptFontName());
                  state.fontDetails.setSubset(false);
              }
          }
          PageResources prs = getPageResources();
  //        PdfName name = state.fontDetails.getFontName();
          prs.addFont(psn, state.fontDetails.getIndirectReference());
          content.append(psn.getBytes()).append(' ').append(size).append(" Tf").append_i(separator);
      }
docs: Set the font and the size for the subsequent text writing.
  
  @param bf the font
  @param size the font size in points