Thread:get

Thread:get Available since LÖVE 0.8.0 and removed in LÖVE 0.9.0 It has been moved to the Channel api. Retrieves the value of a message and removes it from the thread's message box. Function Synopsis value = Thread:get( name ) Arguments string name The name of the message. Returns Variant value The contents of the message or nil when no message in message box. See Also Thread Thread:set

Thread:demand

Thread:demand Available since LÖVE 0.7.0 and removed in LÖVE 0.9.0 It has been moved to the Channel API. Receive a message from a thread. Wait for the message to exist before returning. (Can return nil in case of an error in the thread.) Function Synopsis value = Thread:demand( name ) Arguments string name The name of the message. Returns Variant value The contents of the message. See Also Thread

Text:setFont

Text:setFont Available since LÖVE 0.10.0 This function is not supported in earlier versions. Replaces the Font used with the text. This function can be slow if it is called repeatedly, such as from love.update or love.draw. Create multiple Text objects with different Fonts if you need to rapidly switch fonts. Function Synopsis Text:setFont( font ) Arguments Font font The new font to use with this Text object. Returns Nothing. See Also Text Text:getFont

Text:setf

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 formatted string. Function Synopsis Text:setf( textstring, wraplimit, alignmode ) Arguments string textstring The new string of text to use. number wraplimit The maximum width in pixels of the text before it gets automatically wrapped to a new line. AlignMode align ("left") The alignment of the text. Returns Nothing. Function Synopsis Text:setf

Text:set

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 unformatted string. Function Synopsis Text:set( textstring ) Arguments string textstring The new string of text to use. Returns Nothing. Function Synopsis Text:set( coloredtext ) Arguments table coloredtext A table containing colors and strings to use as the new text, in the form of {color1, string1, color2, string2, ...}. table color1 A table c

Text:getWidth

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. Function Synopsis width = Text:getWidth( ) Arguments None. Returns number width The width of the text. If multiple sub-strings have been added with Text:add, the width of the last sub-string is returned. Function Gets the width of a specific sub-string that was previously added to the Text object. Synopsis width = Text:getWidth( index ) Arguments number i

Text:getHeight

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. Function Synopsis height = Text:getHeight( ) Arguments None. Returns number height The height of the text. If multiple sub-strings have been added with Text:add, the height of the last sub-string is returned. Function Gets the height of a specific sub-string that was previously added to the Text object. Synopsis height = Text:getHeight( index ) Argume

Text:getFont

Text:getFont Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets the Font used with the Text object. Function Synopsis font = Text:getFont( ) Arguments None. Returns Font font The font used with this Text object. See Also Text Text:setFont

Text:getDimensions

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 pixels. Function Synopsis width, height = Text:getDimensions( ) Arguments None. Returns number width The width of the text. If multiple sub-strings have been added with Text:add, the width of the last sub-string is returned. number height The height of the text. If multiple sub-strings have been added with Text:add, the height of the last sub-string

Text:clear

Text:clear Available since LÖVE 0.10.0 This function is not supported in earlier versions. Clears the contents of the Text object. Function Synopsis Text:clear( ) Arguments None. Returns Nothing. See Also Text