TextLayout
TextLayout
- justify : bevy_text::text::JustifyText
- linebreak : bevy_text::text::LineBreak
Description
Component with text format settings for a block of text.
A block of text is composed of text spans, which each have a separate string value and [
TextFont
]. Text spans associated with a text block are collected into [ComputedTextBlock
] for layout, and then inserted to [TextLayoutInfo
] for rendering.See
Text2d
for the core component of 2d text, andText
inbevy_ui
for UI text.