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 textstringnumber wraplimitAlignMode align ("left")Nothing.
Text:setf( coloredtext, wraplimit, alignmode )
table coloredtext{color1, string1, color2, string2, ...}. table color1{red, green, blue, alpha}.string string1table color2{red, green, blue, alpha}.string string2tables and strings ...number wraplimitAlignMode 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