TextOptions
Options of Surface.text.
Properties
Section titled “Properties”
readonlyat:Point
Where the first line starts: x, and y is the baseline (ADR 0027 §5).
direction?
Section titled “direction?”
readonlyoptionaldirection?:any
Paragraph direction (default: from the first strong character).
features?
Section titled “features?”
readonlyoptionalfeatures?: readonlystring[]
OpenType features (liga=0, smcp).
readonlyoptionalfill?:Color
Fill colour.
readonlyfont:Font
The font (needs the text module).
language?
Section titled “language?”
readonlyoptionallanguage?:string
Language (BCP 47).
readonlyoptionallink?:object
A link over the run.
contents?
Section titled “contents?”
readonlyoptionalcontents?:string
target
Section titled “target”
readonlytarget:LinkTargetInit
renderMode?
Section titled “renderMode?”
readonlyoptionalrenderMode?:any
Rendering mode (invisible for an OCR layer).
readonlysize:number
Size in points.
readonlyoptionaltag?:Tag
The structure element the run is (as drawing it inside Surface.tag).