Difference between revisions of "love.graphics.printf"

m (1 revision: Imported docs from potato.)
Line 1: Line 1:
  
 
+
Draws formatted text, with word wrap and alignment.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 17: Line 17:
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=}}
+
{{#set:Description=Draws formatted text, with word wrap and alignment.}}

Revision as of 16:17, 14 February 2010

Draws formatted text, with word wrap and alignment.

Function

Synopsis

love.graphics.printf( text, x, y, limit, align )

Arguments

string text
A text string.
number x
The position on the x-axis.
number y
The position on the y-axis.
number limit
Wrap the line after this many horizontal pixels.
AlignMode align ("left")
The alignment.

Returns

Nothing.

See Also