Page 2 of 2

Re: Inaccurate results from Font:getWidth()

Posted: Sun Nov 05, 2017 2:42 pm
by grump
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.