{{newin (日本語)|[[0.10.0 (日本語)|0.10.0]]|100|type=関数}}
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.

{{notice|Text may appear blurry if it's rendered at non-integer pixel locations.}}
== 関数 ==
=== 概要 ===
<source lang="lua">
index = Text:addf( textstring, wraplimit, alignmode, x, y, angle, sx, sy, ox, oy, kx, ky )
</source>
=== 引数 ===
{{param (日本語)|string|textstring|The text to add to the object.}}
{{param (日本語)|number|wraplimit|The maximum width in pixels of the text before it gets automatically wrapped to a new line.}}
{{param (日本語)|AlignMode|align|The alignment of the text.}}
{{param (日本語)|number|x|The position of the new text (x-axis).}}
{{param (日本語)|number|y|The position of the new text (y-axis).}}
{{param (日本語)|number|angle (0)|Orientation (radians).}}
{{param (日本語)|number|sx (1)|Scale factor (x-axis).}}
{{param (日本語)|number|sy (sx)|Scale factor (y-axis).}}
{{param (日本語)|number|ox (0)|Origin offset (x-axis).}}
{{param (日本語)|number|oy (0)|Origin offset (y-axis).}}
{{param (日本語)|number|kx (0)|Shearing / skew factor (x-axis).}}
{{param (日本語)|number|ky (0)|Shearing / skew factor (y-axis).}}
=== 返値 ===
{{param (日本語)|number|index|An index number that can be used with [[Text:getWidth]] or [[Text:getHeight]].}}

== 関数 ==
=== 概要 ===
<source lang="lua">
index = Text:addf( coloredtext, wraplimit, alignmode, x, y, angle, sx, sy, ox, oy, kx, ky )
</source>
=== 引数 ===
{{param (日本語)|table|coloredtext|A table containing colors and strings to add to the object, in the form of <code>{color1, string1, color2, string2, ...}</code>.}}
{{subparam|table|color1|A table containing red, green, blue, and optional alpha components to use as a color for the next string in the table, in the form of <code>{red, green, blue, alpha}</code>.}}
{{subparam|string|string1|A string of text which has a color specified by the previous color.}}
{{subparam|table|color2|A table containing red, green, blue, and optional alpha components to use as a color for the next string in the table, in the form of <code>{red, green, blue, alpha}</code>.}}
{{subparam|string|string2|A string of text which has a color specified by the previous color.}}
{{subparam|tables and strings|...|Additional colors and strings.}}
{{param (日本語)|number|wraplimit|The maximum width in pixels of the text before it gets automatically wrapped to a new line.}}
{{param (日本語)|AlignMode|align|The alignment of the text.}}
{{param (日本語)|number|x|The position of the new text (x-axis).}}
{{param (日本語)|number|y|The position of the new text (y-axis).}}
{{param (日本語)|number|angle (0)|Orientation (radians).}}
{{param (日本語)|number|sx (1)|Scale factor (x-axis).}}
{{param (日本語)|number|sy (sx)|Scale factor (y-axis).}}
{{param (日本語)|number|ox (0)|Origin offset (x-axis).}}
{{param (日本語)|number|oy (0)|Origin offset (y-axis).}}
{{param (日本語)|number|kx (0)|Shearing / skew factor (x-axis).}}
{{param (日本語)|number|ky (0)|Shearing / skew factor (y-axis).}}
=== 返値 ===
{{param (日本語)|number|index|An index number that can be used with [[Text:getWidth]] or [[Text:getHeight]].}}
=== 注釈 ===
The color set by [[love.graphics.setColor]] will be combined (multiplied) with the colors of the text, when drawing the Text object.

== 関連 ==
* [[parent::Text (日本語)]]
* [[Text:add (日本語)]]
* [[Text:set (日本語)]]
* [[Text:setf (日本語)]]
* [[Text:clear (日本語)]]
[[Category:Functions (日本語)]]
{{#set:Description=Adds additional formatted / colored text to the Text object at the specified position.}}
== そのほかの言語 ==
{{i18n (日本語)|Text:addf}}