Issue #1326 new
An easier way to draw right-aligned or centered text
I think it would be nice if there was an easier way to draw unwrapped right-aligned or centered text from a specified point.
To draw right-aligned text for example one might currently do something like this:
love.graphics.printf(s, x - 10000, y, 10000, 'right') -- 10000 selected to be large enough not to wrap text
local offset = love.graphics.getFont():getWidth(s) love.graphics.print(s, x - offset, y)