-
Notifications
You must be signed in to change notification settings - Fork 95
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
Incorrect font height #143
Labels
Comments
Thanks for your suggestion @INPUTsys-Chris! |
vandeseer
pushed a commit
that referenced
this issue
Aug 15, 2022
vandeseer
pushed a commit
that referenced
this issue
Aug 15, 2022
I added the correction and introduced a flag to allow for backwards compatibility. Would be nice if you could have a look @INPUTsys-Chris and try it out. Still needs some tests IMHO ... |
This is the PR: #149 |
Yeah, there's clearly something odd here. Thanks. If I will have a look when I find some time. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Font height is determined in PdfUtils. The code corresponds to the 'best' SO answer if one googles 'PDFBox font height'.
But that codes uses getCapHeight and is wrong if I have descents or Umlauts. Cap Height is just the height of capital letters.
My proposal would be to determine the height this way:
The text was updated successfully, but these errors were encountered: