Module prelude

Module prelude 

Source
Expand description

The text prelude.

This includes the most common types in this crate, re-exported for your convenience.

Structs§

Font
An Asset that contains the data for a loaded font, if loaded as an asset.
FontWeight
How thick or bold the strokes of a font appear.
Strikethrough
A text entity with this component is drawn with strikethrough.
StrikethroughColor
Color for the text’s strikethrough. If this component is not present, its TextColor will be used.
TextColor
The color of the text for this section.
TextFont
TextFont determines the style of a text span within a ComputedTextBlock, specifically the font face, the font size, the line height, and the antialiasing method.
TextLayout
Component with text format settings for a block of text.
TextSpan
A span of text in a tree of spans.
Underline
Add to a text entity to draw its text with underline.
UnderlineColor
Color for the text’s underline. If this component is not present, its TextColor will be used.

Enums§

Justify
Describes the horizontal alignment of multiple lines of text relative to each other.
LineBreak
Determines how lines will be broken when preventing text from running out of bounds.
TextError
Errors related to the textsystem