Skip to main content

TextOptions

Index

Properties

optionalcolor

color?: Color

Optionally override the font color, currently unsupported by SpriteFont

optionalfont

font?: SpriteFont | Font

Optionally specify a font, if none specified a default font is used (System sans-serif 10 pixel)

optionalmaxWidth

maxWidth?: number

Optionally specify a maximum width in pixels for our text, and wrap to the next line if needed.

text

text: string

Text to draw

Page Options