Draw Text Rotated?
Posted: Thu Jul 30, 2009 11:51 pm
I'm playing with kinetic type, but none of the text-drawing algorithms allow rotated text. Is there a way around this than other making images of A-Z, or doing procedural vectors?
Code: Select all
love.graphics.draw(text, x, y, rotation, scale)
Code: Select all
draw( string, x, y ) Draws text on screen.
draw( string, x, y, angle ) Draws rotated text on screen.
draw( string, x, y, angle, s ) Draws rotated/scaled text on screen.
draw( string, x, y, angle, sx, sy ) Draws rotated/scaled text on screen.
draw( sprite, x, y ) Draws an Image or Animation on screen.
draw( sprite, x, y, angle ) Draws a rotated Image or Animation on screen.
draw( sprite, x, y, angle, s ) Draws a rotated/scaled Image or Animation on screen.
draw( sprite, x, y, angle, sx, sy ) Draws a rotated/scaled Image or Animation on screen.
draw( particlesystem, x, y ) Draws a particle system on screen.
drawf( string, x, y, limit ) Draws formatted text on screen, with word wrap.
drawf( string, x, y, limit, align ) Draws formatted text on screen, with word wrap.
draws( image, x, y, cx, cy, w, h ) Draws a subsprite of an Image.
draws( image, x, y, cx, cy, w, h, angle ) Draws a rotated subsprite of an Image.
draws( image, x, y, cx, cy, w, h, angle, s ) Draws a rotated/scaled subsprite of an Image.
draws( image, x, y, cx, cy, w, h, angle, sx, sy ) Draws a rotated/scaled subsprite of an Image.
draws( image, x, y, cx, cy, w, h, angle, sx, sy, ox, oy )