Skip to content

<text> ​

Text widgets display information through writing.

Example ​

xml
<text>Hello, world!</text>

The text content of this element is used as the displayed string.

Attributes ​

AttributeTypeRequired
sizefloatNo
line-heightLineHeightNo
fontstringNo
font-maybestringNo
widthLengthNo
heightLengthNo
align-xAlignmentNo
align-yVerticalNo
shapingShapingNo
wrappingWrappingNo
stylestringNo
colorstringNo
color-maybestringNo