Class TextStyleInternal

Contains information about the style of a text item, such as the fill color or font family.

Hierarchy

  • TextStyle

Constructors

Properties

color?: string

Hex value representing the color for the text within the text item. Default: #1a1a1a.

fillColor?: string

Background color of the text item. Default: #ffffff.

fillOpacity?: string

Opacity level of the background color. Possible values: any number between 0.0 and 1.0, where: 0.0: the background color is completely transparent or invisible. 1.0: the background color is completely opaque or solid. Default: 1.0 if fillColor is provided, 0.0 if fillColor is not provided.

fontFamily?: string

Font type for the text in the text item. Default: arial.

fontSize?: string

Font size, in dp. Default: 14.

textAlign?: string

Horizontal alignment for the item's content. Default: center.