Skip to content
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

eating exception in PdfRendererBuilder.useFont() #324

Closed
pwolfpwolf opened this issue Jan 31, 2019 · 1 comment
Closed

eating exception in PdfRendererBuilder.useFont() #324

pwolfpwolf opened this issue Jan 31, 2019 · 1 comment

Comments

@pwolfpwolf
Copy link

if you call:

PdfRendererBuilder builder = new PdfRendererBuilder();
builder.useFont( new File("not/the/correct/path/font.ttf", "font name");

It will silently fail, and you end up with a null pointer error exception when the font is used. I was debugging it and found where the exception happened but was not reported. I can't remember exactly where it was though.

@danfickle
Copy link
Owner

Hi @pwolfpwolf,

@brundipub has just done some good work in this area, but you’re right, we should probably report the exception itself. I’ll do so once back on the main branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants