# Text (leaf)

Displays a single-line text string. By default, the string is centered horizontally and vertically.

  Contents (`Main` takes precedence):
Main `GP`
  (Text)
  The text.
From
  (Text)
  The name of a resource from which the text will be taken.

Centering choices (mutually exclusive):

Center
  (Boolean, `TRUE`)
  Causes the text to be centered.
LeftAlign
  (Boolean, `FALSE`)
  Causes the text to be left-aligned.
RightAlign
  (Boolean, `FALSE`)
  Causes the text to be right-aligned.

Margin
  (Real, `2.0`)
  Forces this many points of margin on the east and west sides of the text.

Shape
  The bounding rectangle of the text when rendered in the current LabelFont, plus `2 * Margin` in each axis.
Notes
  `Text` components use the `LabelFont` property, not the `Font` property.