//allow for corrupted
boolean isCorrupt=glyphs.isCorrupted();
if(glyphs.isCorrupted()){
PdfFontFactory pdfFontFactory =new PdfFontFactory(currentPdfFile);
pdfFontFactory.getFontSub(getBaseFontName());
isFontEmbedded=false;
substituteFontFile= pdfFontFactory.getMapFont();
}
//setup and substitute font
if(renderPage && !isFontEmbedded && substituteFontFile!=null){