text

fun text(text: String, position: Vector2, visible: Boolean = true, glyphOutput: GlyphOutput? = null)(source)

Renders the given text at the specified position.

Parameters

text

the string to be rendered

position

the position where text should be drawn, specified as a Vector2 object

visible

a flag indicating if the text should be visible. Default is true.

glyphOutput

an optional GlyphOutput object to capture glyph-level rendering details


fun text(text: String, x: Double = 0.0, y: Double = 0.0, visible: Boolean = true, glyphOutput: GlyphOutput? = null)(source)

Draws text at the specified coordinates using the font map.

Parameters

text

The string of text to be drawn.

x

The x-coordinate where the text rendering starts. Default is 0.0.

y

The y-coordinate where the text rendering starts. Default is 0.0.

glyphOutput

Optional parameter to output glyph data for further usage or analysis.