I have the following problem. I am trying to calculate the line width in a PDFbox to center it in a rectangle. Now my problem is that I get the same width for 12 as for 32, but 1 is less than 3, so my text for 12 is not centered. How can I solve this problem?
Thanks!
Gerrit
source share