interface TextStyle {
    antiAlias?: boolean;
    backgroundColor?: Color;
    blendMode?: BlendMode;
    border?: boolean;
    borderColor?: Color;
    borderShader?: Shader;
    borderWidth?: number;
    cap?: StrokeCap;
    color?: Color;
    decoration?: number;
    decorationColor?: Color;
    decorationThickness?: number;
    fill?: boolean;
    fillColor?: Color;
    fillShader?: Shader;
    fontFamilies?: string[];
    fontSize?: number;
    fontStyle?: FontStyle;
    foregroundColor?: Color;
    halfLeading?: boolean;
    heightMultiplier?: number;
    interval?: number[];
    join?: StrokeJoin;
    layout?: Layout;
    letterSpacing?: number;
    locale?: string;
    margin?: number | [number, number, number, number] | [number, number];
    offset?: number;
    rotation?: number;
    scaleX?: number;
    scaleY?: number;
    shader?: Shader;
    textBaseline?: TextBaseline;
    transparency?: number;
    wordSpacing?: number;
}

Hierarchy (view full)

Properties

antiAlias?: boolean
backgroundColor?: Color

The background color of the text this.

blendMode?: BlendMode
border?: boolean
borderColor?: Color
borderShader?: Shader
borderWidth?: number
cap?: StrokeCap
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.

fill?: boolean
fillColor?: Color
fillShader?: Shader
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.

interval?: number[]
join?: StrokeJoin
layout?: Layout
letterSpacing?: number

The spacing between characters in the text.

locale?: string

The locale to be used for the text.

margin?: number | [number, number, number, number] | [number, number]
offset?: number
rotation?: number
scaleX?: number
scaleY?: number
shader?: Shader
textBaseline?: TextBaseline

The baseline alignment of the text.

transparency?: number
wordSpacing?: number

The spacing between words in the text.