Text

Available since LÖVE 0.10.0
This type is not supported in earlier versions.

Drawable text.

Constructors

love.graphics.newText Creates a new drawable Text object. 0.10.0

Functions

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

Text:getFont
  • References/Game Development/LÖVE/love.graphics/Text

Text:getFont Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets the

2025-01-10 15:47:30
Text:setf
  • References/Game Development/LÖVE/love.graphics/Text

Text:setf 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

2025-01-10 15:47:30
Text:add
  • References/Game Development/LÖVE/love.graphics/Text

Text:add Available since LÖVE 0.10.0 This function is not supported in earlier versions. Adds additional colored text to the Text object at

2025-01-10 15:47:30
Text:clear
  • References/Game Development/LÖVE/love.graphics/Text

Text:clear Available since LÖVE 0.10.0 This function is not supported in earlier versions. Clears the contents of the Text object.

2025-01-10 15:47:30
Text:setFont
  • References/Game Development/LÖVE/love.graphics/Text

Text:setFont Available since LÖVE 0.10.0 This function is not supported in earlier versions. Replaces the

2025-01-10 15:47:30
Text:getDimensions
  • References/Game Development/LÖVE/love.graphics/Text

Text:getDimensions Available since LÖVE 0.10.1 This function is not supported in earlier versions. Gets the width and height of the text in

2025-01-10 15:47:30
Text:set
  • References/Game Development/LÖVE/love.graphics/Text

Text:set 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

2025-01-10 15:47:30
Text:addf
  • References/Game Development/LÖVE/love.graphics/Text

Text:addf Available since LÖVE 0.10.0 This function is not supported in earlier versions. Adds additional formatted / colored text to the Text

2025-01-10 15:47:30
Text:getHeight
  • References/Game Development/LÖVE/love.graphics/Text

Text:getHeight Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets the height of the text in pixels.

2025-01-10 15:47:30
Text:getWidth
  • References/Game Development/LÖVE/love.graphics/Text

Text:getWidth Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets the width of the text in pixels.

2025-01-10 15:47:30