Skip to content
Konjure / spatial intelligence

Text

← Builtin reference

Visible text content represented as a host UI schema.

Signature

type Text { value: Str = ""; size: Number = 0.2; }

Text is a declarative value only: layout, fonts, glyph shaping, and drawing remain host responsibilities. Constructing it never performs text rendering by itself.

Fields

value: Str
UTF-8 text content; defaults to empty.
Default""
size: f64
Requested text size in host scene units; defaults to 0.2.
Default0.2

Examples

Create text

Construction records content but does not itself draw it.

Tick 0 · 0.00 s⌘ / Ctrl + EnterThis device
main.kj
Loading the language runtime…
Output 0
No output.
Expected output
hello

Rust definition

Interpreter RecordValue schema; text layout and drawing are host responsibilities.

See also