Page 1 of 1
printing rotated text?
Posted: Wed Feb 24, 2010 11:24 pm
by Mr. Strange
I can print rotated text, and I can print formatted text (formatted means aligned and wrapped after some number of characters).
But I cannot print rotated formatted text. Will this be added to love sometime soon?
-- Mr. Strange
Re: printing rotated text?
Posted: Thu Feb 25, 2010 1:06 pm
by Robin
Actually, you can.
But for that you need to rotate the whole graphics thingy, with some undocumented function:
Code: Select all
love.graphics.push()
love.graphics.rotate(angle)
love.graphics.printf(text, x, y, xwrap)
love.graphics.pop()
Re: printing rotated text?
Posted: Fri Feb 26, 2010 9:27 pm
by Mr. Strange
Nice! I have to do some tricky math to adjust for the new coordinate system, but it's totally worthwhile to get my card text printing consistently.
Thanks much for this!