TextComponent
Uses Canvas to render text. This class utilizes TextMeasurer and supports the following:
multi-line text with automatic line breaking
text truncation
AnnotatedString
text rotation
text backgrounds (any Component)
margins and padding
Constructors
Types
Defines a TextComponent’s minimum width.
Functions
Creates a new TextComponent based on this one.
Uses Canvas to draw this TextComponent.
Returns the bounds (Rect) of this TextComponent for the given text and maximum dimensions. pad defines whether to extend text by such a number of blank lines that it has lineCount lines.
Returns the height of this TextComponent for the given text and maximum dimensions. pad defines whether to extend text by such a number of blank lines that it has lineCount lines.
Returns the width of this TextComponent for the given text and maximum dimensions. pad defines whether to extend text by such a number of blank lines that it has lineCount lines.