Difference between revisions of "Text"
m |
m (Add note about integer positions) |
||
Line 1: | Line 1: | ||
{{newin|[[0.10.0]]|100|type=type}} | {{newin|[[0.10.0]]|100|type=type}} | ||
Drawable text. | Drawable text. | ||
+ | {{notice|Text may appear blurry if it's rendered at non-integer pixel locations.}} | ||
== Constructors == | == Constructors == | ||
{{#ask: [[Category:Functions]] [[Constructs::Text]] | {{#ask: [[Category:Functions]] [[Constructs::Text]] |
Latest revision as of 00:25, 28 August 2017
Available since LÖVE 0.10.0 |
This type is not supported in earlier versions. |
Drawable text.
Text may appear blurry if it's rendered at non-integer pixel locations. |
Constructors
love.graphics.newText | Creates a new drawable Text object. | 0.10.0 |
Functions
Object:release | Immediately destroys the object's Lua reference. | 11.0 | |
Object:type | Gets the type of the object as a string. | ||
Object:typeOf | Checks whether an object is of a certain type. | ||
Text:add | Adds additional colored text to the Text object at the specified position. | 0.10.0 | |
Text:addf | Adds additional formatted / colored text to the Text object at the specified position. | 0.10.0 | |
Text:clear | Clears the contents of the Text object. | 0.10.0 | |
Text:getDimensions | Gets the width and height of the text. | 0.10.1 | |
Text:getFont | Gets the Font used with the Text object. | 0.10.0 | |
Text:getHeight | Gets the height of the text. | 0.10.0 | |
Text:getWidth | Gets the width of the text. | 0.10.0 | |
Text:set | Replaces the contents of the Text object with a new string. | 0.10.0 | |
Text:setFont | Replaces the Font used with the text. | 0.10.0 | |
Text:setf | Replaces the contents of the Text object with a new formatted string. | 0.10.0 |
Supertypes
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info