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 ) ' ' , ( byte ) ' ' ) ; }
Set the font and font size to draw text with .