Skip to content

Documentation / device / DrawTextLayoutOptions

Interface: DrawTextLayoutOptions ​

Defined in: libs/device/src/base_types.ts:2489

Layout options for drawing text inside a rectangle

Properties ​

halign? ​

optional halign?: TextHorizontalAlignment

Defined in: libs/device/src/base_types.ts:2491

Horizontal alignment of each line


valign? ​

optional valign?: TextVerticalAlignment

Defined in: libs/device/src/base_types.ts:2493

Vertical alignment of the text block


wordWrap? ​

optional wordWrap?: boolean

Defined in: libs/device/src/base_types.ts:2495

Whether to wrap text automatically to fit the rectangle width

Released under the MIT License.