-
Notifications
You must be signed in to change notification settings - Fork 568
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Font contructor won't load font anymore (with workaround) #970
Labels
Comments
This is the Font class in OpenPDF: https://github.com/LibrePDF/OpenPDF/blob/master/openpdf/src/main/java/com/lowagie/text/Font.java#L73 Can you please describe how to fix the constructor in this class? Pull requests welcome. |
The Problem may be in PdfPCell. Can you share some (minimal) code to demonstrate the problem? |
Things to do here:
@JanBuerger , is the problem solved in any new version of OpenPDF? |
Other thoughts:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: