Module bevy::text

source ·
Expand description

Text drawing, styling, and font assets.

Modules

Structs

The maximum width and height of text. The text will wrap according to the specified size. Characters out of the bounds after wrapping will be truncated. Text is aligned according to the specified TextAlignment.
The bundle of components needed to draw text in a 2D scene via a 2D Camera2dBundle. Example usage.
The calculated size of text drawn in 2D scene.
Render information for a corresponding Text component.

Enums

Describes horizontal alignment preference for positioning & bounds.
Describes vertical alignment preference for positioning & bounds. Currently a placeholder for future functionality.
Text is rendered for two different view projections, normal Text2DBundle is rendered with a BottomToTop y axis, and UI is rendered with a TopToBottom y axis. This matters for text because the glyph positioning is different in either layout.

Functions

Updates the layout and size information whenever the text or style is changed. This information is computed by the TextPipeline on insertion, then stored.