Set origin for text rendering
Posted: Fri Feb 20, 2015 10:06 pm
Hi,
I'm new here and I'm poking around love2d a little. I'm interested if there's a way to print text to the left of the origin point. I have tried using printf and aligned text to the right, but it's still required to define offset and box and it's annoying to recalculate bounding box if the text is dynamic.
To the point. I want to have text in the top right and top left corners of my game, and if I set position of print to (gameWidth, 0) text goes out of rendering area.
I didn't find anything in the documentation about it. Is there maybe some trick to it?
I'm new here and I'm poking around love2d a little. I'm interested if there's a way to print text to the left of the origin point. I have tried using printf and aligned text to the right, but it's still required to define offset and box and it's annoying to recalculate bounding box if the text is dynamic.
To the point. I want to have text in the top right and top left corners of my game, and if I set position of print to (gameWidth, 0) text goes out of rendering area.
I didn't find anything in the documentation about it. Is there maybe some trick to it?