Available since LÖVE 0.10.0
This function is not supported in earlier versions.
Adds additional formatted / colored text to the Text object at the specified position.
The word wrap limit is applied before any scaling, rotation, and other coordinate transformations. Therefore the amount of text per line stays constant given the same wrap limit, even if the scale arguments change.
Text may appear blurry if it's rendered at non-integer pixel locations.
index = Text:addf( textstring, wraplimit, alignmode, x, y, angle, sx, sy, ox, oy, kx, ky )
string textstringnumber wraplimitAlignMode alignnumber xnumber ynumber angle (0)number sx (1)number sy (sx)number ox (0)number oy (0)number kx (0)number ky (0)number indexindex = Text:addf( coloredtext, wraplimit, alignmode, x, y, angle, sx, sy, ox, oy, kx, ky )
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 alignnumber xnumber ynumber angle (0)number sx (1)number sy (sx)number ox (0)number oy (0)number kx (0)number ky (0)number indexThe color set by love.graphics.setColor will be combined (multiplied) with the colors of the text, when drawing the Text object.
© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Text:addf