Hierarchy

  • PBTextShape

Properties

font?: Font

the font (default F_SANS_SERIF)

fontAutoSize?: boolean

override font_size to automatically fit in width/height

fontSize?: number

the font size (default 10)

height?: number

available vertical space (default 1)

lineCount?: number

maximum number of lines to display

lineSpacing?: number

extra distance between lines (default 0)

outlineColor?: PBColor3

outline stroke color (default [1.0, 1.0, 1.0])

outlineWidth?: number

width of the stroke outlining each letter (default 0)

paddingBottom?: number

distance from text to bottom border (default 0)

paddingLeft?: number

distance from text to left border (default 0)

paddingRight?: number

distance from text to right border (default 0)

paddingTop?: number

distance from text to top border (default 0)

shadowBlur?: number

blurriness of the drop shadow (default 0)

shadowColor?: PBColor3

drop shadow color (default [1.0, 1.0, 1.0])

shadowOffsetX?: number

horizontal length of the shadow (default 0)

shadowOffsetY?: number

vertical length of the shadow (default 0)

text: string

the content

textAlign?: TextAlignMode

X and Y alignment (default TAM_CENTER_CENTER)

textColor?: PBColor4

text color (default [1.0, 1.0, 1.0])

textWrapping?: boolean

wrap text when the border is reached (default false)

width?: number

available horizontal space (default 1)