-
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
Can't fallback Font to Helvetica in PdfGraphics2D #1159
Comments
I'm observing the same problem. However, in my case, I can generate one PDF without problems, but subsequent PDFs fail with this exact exception, though I'm also getting
If that's related, I'm using the technique discussed by V-F in #1078 to render an SVG image. |
Oh, and version 2.0.1 of OpenPDF works fine, only 2.0.2 breaks. |
Ok, that is strange. Maybe there is a problem or difference resolving the font-resource. There were some changes so the tests also work on Windows. Keeping the tests compatible in Windows, Unix and Mac is not easy, as I only have access to the first 2. @admannon can you verify, that the error don't occur with 2.0.1? |
It's also a strange behaviour, as helvetica may be a font provided by the OS, but there are helvetica-font-files also in the JAR. |
Well, I'm on Linux and don't have any form of Helvetica installed. Could this influence something? |
Apologies for the delayed response. Yes, this error don't occur with OpenPDF v2.0.1. The attached PDF was generated using OpenPDF v2.0.1. |
PLEASE FILL THIS TEMPLATE AS MUCH AS POSSIBLE. REMOVE IRRELEVANT PARTS.
Describe the bug
We can't generate PDF document from code below and got error:
To Reproduce
Code to reproduce the issue
Unit Test
Expected behavior
This code should generate a PDF normally
System
(please complete the following information)
new Font(Font.SANS_SERIF, Font.PLAIN, 12)
The text was updated successfully, but these errors were encountered: