Page 1 of 1

printf y size?

Posted: Wed May 04, 2016 1:00 am
by chimmihc
Is there a reasonable way to get how much love.graphics.printf will wrap?

Re: printf y size?

Posted: Wed May 04, 2016 1:04 am
by pgimeno
I think you want [wiki]Font:getWrap[/wiki].

Edit: In particular, [wiki]Font:getHeight[/wiki]() * #lines where lines is the second value returned by Font:getWrap().

Re: printf y size?

Posted: Wed May 04, 2016 1:19 am
by chimmihc
pgimeno wrote:I think you want [wiki]Font:getWrap[/wiki].

Edit: In particular, [wiki]Font:getHeight[/wiki]() * #lines where lines is the second value returned by Font:getWrap().
That works perfectly! Thanks.