You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This isn't setting the font to courier anymore, it defaults to LiberationSans :
final Font font = new Font(Font.COURIER, fontsize, Font.NORMAL)
final PdfPCell c = new PdfPCell(new Phrase(myText, font));
This seems to fix it:
final Font font = fontFactoryImp.getFont("Courier", fontsize, 0);
final PdfPCell c = new PdfPCell(new Phrase(myText, font));
Can you please remove or update the broken Font constructor?
The text was updated successfully, but these errors were encountered:
This isn't setting the font to courier anymore, it defaults to LiberationSans :
final Font font = new Font(Font.COURIER, fontsize, Font.NORMAL)
final PdfPCell c = new PdfPCell(new Phrase(myText, font));
This seems to fix it:
final Font font = fontFactoryImp.getFont("Courier", fontsize, 0);
final PdfPCell c = new PdfPCell(new Phrase(myText, font));
Can you please remove or update the broken Font constructor?
The text was updated successfully, but these errors were encountered: