Inaccurate results from Font:getWidth()

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
grump
Party member
Posts: 947
Joined: Sat Jul 22, 2017 7:43 pm

Re: Inaccurate results from Font:getWidth()

Post 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.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 189 guests