Class TextLayout

Layout options for Image.renderText

Constructors

Properties

horizontalAlign: HorizontalAlign = 'left'

Alignment of the lines relative to the widest line

maxHeight: number

Lines that don't fit are cut off

maxWidth: number

Longer lines are wrapped

verticalAlign: VerticalAlign = 'top'

Which lines to keep when cutting off at maxHeight

wrapHardBreaks: boolean

Whether to break lines at newline characters

wrapStyle: WrapStyle

Whether to wrap between words or at any character