Constructor


Text(text: any, x: any, y: any, w: any, h: any, options: any)

Arguments:

text: any
x: any
y: any
w: any
h: any
options: any




Methods




Text:drawChar(node: any, state: any, use_color: any)

Arguments:

node: any
state: any
use_color: any


Text:drawToCanvas(func: any, clear: any)

Arguments:

func: any
clear: any






Text:getNodeSize(node: any, state: any, include_scale: any)

Arguments:

node: any
state: any
include_scale: any

Returns:

1: integer
2: number






Text:getTextColor(state: any, use_base_color: any)

Arguments:

state: any
use_base_color: any

Returns:

1: unknown
2: unknown
3: unknown
4: number






Text:isModifier(command: any)

Arguments:

command: any

Returns:

1: true


Text:isStyleAnimated(style: any)

Arguments:

style: any

Returns:

1: true


Text:isTrue(text: any)

Arguments:

text: any

Returns:

1: boolean


Text:onAddToStage(stage: any)

Arguments:

stage: any


Text:processCustomCommand(node: any, dry: any)

Arguments:

node: any
dry: any




Text:processModifier(node: any, dry: any)

Arguments:

node: any
dry: any


Text:processNode(node: any, dry: any)

Arguments:

node: any
dry: any


Text:processStyle(style: any)

Arguments:

style: any

Returns:

1: boolean


Text:registerCommand(command: any, func: any, options: any)

Arguments:

command: any
func: any
options: any




Text:setText(text: any)

Arguments:

text: any


Text:setTextColor(r: any, g: any, b: any, a: any)

Arguments:

r: any
g: any
b: any
a: any


Text:textToNodes(input_string: any)

Arguments:

input_string: any

Returns:

1: table
2: string





Fields



Undocumented

















Text.canvas: love.Canvas

A Canvas is used for off-screen rendering. Think of it as an invisible screen that you can draw to, but that will not be visible until you draw it to the actual visible screen. It is also known as "render to texture".

By drawing things that do not change position often (such as background items) to the Canvas, and then drawing the entire Canvas instead of each item, you can reduce the number of draw operations performed each frame.

In versions prior to love.graphics.isSupported("canvas") could be used to check for support at runtime.

Open in Browser



Text.canvas: love.Canvas

A Canvas is used for off-screen rendering. Think of it as an invisible screen that you can draw to, but that will not be visible until you draw it to the actual visible screen. It is also known as "render to texture".

By drawing things that do not change position often (such as background items) to the Canvas, and then drawing the entire Canvas instead of each item, you can reduce the number of draw operations performed each frame.

In versions prior to love.graphics.isSupported("canvas") could be used to check for support at runtime.

Open in Browser