Represents the style properties that can be applied to a text item.

interface TextItemStyle {
    backgroundColor?: Color;
    color?: Color;
    decoration?: number;
    decorationColor?: Color;
    decorationThickness?: number;
    fontFamilies?: string[];
    fontSize?: number;
    fontStyle?: FontStyle;
    foregroundColor?: Color;
    halfLeading?: boolean;
    heightMultiplier?: number;
    letterSpacing?: number;
    locale?: string;
    textBaseline?: TextBaseline;
    wordSpacing?: number;
}

Properties

backgroundColor?: Color

The background color of the text item.

color?: Color

The color of the text.

decoration?: number

The decoration style to be applied to the text.

decorationColor?: Color

The color of the decoration applied to the text.

decorationThickness?: number

The thickness of the decoration applied to the text.

fontFamilies?: string[]

An array of font families to be used for rendering the text.

fontSize?: number

The size of the font used for the text.

fontStyle?: FontStyle

The style of the font used for the text (e.g., normal, italic).

foregroundColor?: Color

The foreground color of the text.

halfLeading?: boolean

Specifies whether to use half leading for the text.

heightMultiplier?: number

Multiplier for height adjustment of the text.

letterSpacing?: number

The spacing between characters in the text.

locale?: string

The locale to be used for the text.

textBaseline?: TextBaseline

The baseline alignment of the text.

wordSpacing?: number

The spacing between words in the text.