Available since LÖVE 0.10.0
This function is not supported in earlier versions.
Replaces the contents of the Text object with a new formatted string.
Text:setf( textstring, wraplimit, alignmode )
string textstring
number wraplimit
AlignMode align ("left")
Nothing.
Text:setf( coloredtext, wraplimit, alignmode )
table coloredtext
{color1, string1, color2, string2, ...}
. table color1
{red, green, blue, alpha}
.string string1
table color2
{red, green, blue, alpha}
.string string2
tables and strings ...
number wraplimit
AlignMode align ("left")
Nothing.
The color set by love.graphics.setColor will be combined (multiplied) with the colors of the text, when drawing the Text object.
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Text:setf