Module text

Module text 

Source
Expand description

A component for rendering single-style text.

§Usage

Use to display labels, headings, or other static or dynamic text content.

Structs§

TextArgs
Configuration arguments for the text component.
TextArgsBuilder
Builder for TextArgs.

Enums§

TextArgsBuilderError
Error type for TextArgsBuilder

Functions§

read_font_system
It costs a lot to create a glyphon font system, so we use a static one to share it every where and avoid creating it multiple times. This function returns a read lock of the font system.
text
text
write_font_system
It costs a lot to create a glyphon font system, so we use a static one to share it every where and avoid creating it multiple times. This function returns a write lock of the font system.