Skip to content

ITextStyle

Type interface

Sources

ITextStyle is an interface: it describes a shape of data and is not imported on its own.

Properties

baselineRatio

Type undefined | number

breakWords

Type undefined | false | true

direction

Type "ltr" | "rtl"

ellipsis

Type undefined | string

fill

Type Color | IGradient | IPattern

fontFamily

Type undefined | string

fontSize

Type string | number

fontStyle

Type "normal" | "italic" | "oblique"

fontVariant

Type "normal" | "small-caps"

fontWeight

Type "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900"

lineHeight

Type number | Percent

maxHeight

Type undefined | number

maxWidth

Type undefined | number

minScale

Type undefined | number

oversizedBehavior

Type "none" | "hide" | "fit" | "wrap" | "wrap-no-break" | "truncate"

shadowBlur

Type undefined | number

shadowColor

Type Color | null

shadowOffsetX

Type undefined | number

shadowOffsetY

Type undefined | number

shadowOpacity

Type undefined | number

textAlign

Type "start" | "end" | "left" | "right" | "center"

textBaseline

Type "top" | "hanging" | "middle" | "alphabetic" | "ideographic" | "bottom"

textDecoration

Type "underline" | "line-through"

verticalAlign

Type "baseline" | "sub" | "super"