TextBoxOptions
Options of Surface.textBox.
Properties
Section titled “Properties”align?
Section titled “align?”
readonlyoptionalalign?:any
Line alignment (default start).
readonlybox:Rect
The box the lines are broken into.
direction?
Section titled “direction?”
readonlyoptionaldirection?:any
Paragraph direction.
features?
Section titled “features?”
readonlyoptionalfeatures?: readonlystring[]
OpenType features.
readonlyfont:Font
The font (needs the text module).
language?
Section titled “language?”
readonlyoptionallanguage?:string
Language (BCP 47).
lineHeight?
Section titled “lineHeight?”
readonlyoptionallineHeight?:number
Line height as a factor of the size (default 1.2).
overflow?
Section titled “overflow?”
readonlyoptionaloverflow?:any
What happens to text that doesn’t fit (default clip; error throws text-overflow).
readonlysize:number
Size in points.
readonlyoptionaltag?:Tag
The structure element the box is (as drawing it inside Surface.tag).