TextBounds

TextBounds

  • width : core::option::Option
  • height : core::option::Option

Description

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 JustifyText.

Note: only characters that are completely out of the bounds will be truncated, so this is not a reliable limit if it is necessary to contain the text strictly in the bounds. Currently this component is mainly useful for text wrapping only.

Functions