Skip to content

TextOptions

Options of Surface.text.

readonly at: Point

Where the first line starts: x, and y is the baseline (ADR 0027 §5).


readonly optional direction?: any

Paragraph direction (default: from the first strong character).


readonly optional features?: readonly string[]

OpenType features (liga=0, smcp).


readonly optional fill?: Color

Fill colour.


readonly font: Font

The font (needs the text module).


readonly optional language?: string

Language (BCP 47).


readonly optional link?: object

A link over the run.

readonly optional contents?: string

readonly target: LinkTargetInit


readonly optional renderMode?: any

Rendering mode (invisible for an OCR layer).


readonly size: number

Size in points.


readonly optional tag?: Tag

The structure element the run is (as drawing it inside Surface.tag).