Goddamnit, I'm dumb. I did the exact same thing, got the functions from the source code. But I was getting wrong values from getBoundingBox() for some reason.
Now I know the reason: I forgot to set the freaking font size when calling newRasterizer and it defaulted to 12 pixels. *facepalm*
Thank you.
Inaccurate results from Font:getWidth()
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Who is online
Users browsing this forum: Ahrefs [Bot] and 5 guests