Open Chris-SP365 opened 2 years ago
Thanks for your suggestion @INPUTsys-Chris! I will check that (as soon as I find some time for it).
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: https://github.com/vandeseer/easytable/pull/149
Thank you for your hard work. I ran my quick test and while the spacing is better, the letters don't seem to be on the right place:
Yeah, there's clearly something odd here. Thanks. If I will have a look when I find some time.
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: