@Override public void createFont(final PdfObject pdfObject,final String fontID,final boolean renderPage,final ObjectStore objectStore,final Map<String,PdfJavaGlyphs> substitutedFonts) throws Exception {
  fontTypes=StandardFonts.TYPE1;
  init(fontID,renderPage);
  final PdfObject pdfFontDescriptor=pdfObject.getDictionary(PdfDictionary.FontDescriptor);
  setBoundsAndMatrix(pdfFontDescriptor);
  setName(pdfObject);
  setEncoding(pdfObject,pdfFontDescriptor);
  try {
    readEmbeddedFont(pdfFontDescriptor);
  }
 catch (  final Exception e) {
    LogWriter.writeLog("Exception: " + e.getMessage());
  }
  readWidths(pdfObject,true);
  if (renderPage) {
    setFont(getBaseFontName(),1);
  }
}

@ Override public void createFont ( final PdfObject pdfObject , final String fontID , final boolean renderPage , final ObjectStore objectStore , final Map < String , PdfJavaGlyphs > substitutedFonts ) throws Exception { fontTypes = StandardFonts . TYPE1 ; init ( fontID , renderPage ) ; final PdfObject pdfFontDescriptor = pdfObject . getDictionary ( PdfDictionary . FontDescriptor ) ; setBoundsAndMatrix ( pdfFontDescriptor ) ; setName ( pdfObject ) ; setEncoding ( pdfObject , pdfFontDescriptor ) ; try { readEmbeddedFont ( pdfFontDescriptor ) ; } catch ( final Exception e ) { LogWriter . writeLog ( "Exception: " + e . getMessage ( ) ) ; } readWidths ( pdfObject , true ) ; if ( renderPage ) { setFont ( getBaseFontName ( ) , 1 ) ; } }
read in a font and its details from the pdf file
