code: public void setFont (final PDFont font, final float fontSize) throws IOException
    {
      if (fontStack.isEmpty ())
        fontStack.add (font);
      else
        fontStack.set (fontStack.size () - 1, font);
  
      PDDocumentHelper.handleFontSubset (m_aDoc, font);
  
      writeOperand (resources.add (font));
      writeOperand (fontSize);
      writeOperator ((byte) 'T', (byte) 'f');
    }
docs: Set the font and font size to draw text with.
  
  @param font
  The font to use.
  @param fontSize
  The font size to draw the text.
  @throws IOException
  If there is an error writing the font information.