pub const TEXT: &str = "type Text { value: Str = \"\"; size: Number = 0.2; }";Expand description
Visible text content represented as a host UI schema.
Text is a declarative value only: layout, fonts, glyph shaping, and drawing remain host responsibilities. Constructing it never performs text rendering by itself.
§Declaration
type Text { value: Str = ""; size: Number = 0.2; }§Fields and methods
-
value: UTF-8 text content; defaults to empty. -
size: Requested text size in host scene units; defaults to 0.2.
§Create text
Construction records content but does not itself draw it.
let value = Text { value: "hello" };
print(value.value);