OptionalalignThe alignment of the Text. This only impacts multi-line text. Either left, right, center or justify.
OptionalbackgroundA solid fill color that is rendered behind the Text object. Given as a CSS string color such as #ff0.
OptionalbaselineThe amount of horizontal padding added to the width of the text when calculating the font metrics.
OptionalbaselineThe amount of vertical padding added to the height of the text when calculating the font metrics.
OptionalcolorThe color the Text is drawn in. Given as a CSS string color such as #fff or rgb().
OptionalfixedForce the Text object to have the exact height specified in this property. Leave as zero for it to change accordingly to content.
OptionalfixedForce the Text object to have the exact width specified in this property. Leave as zero for it to change accordingly to content.
OptionalfontThe font family or font settings to set. Overrides the other font settings.
OptionalfontThe font the Text object will render with. This is a Canvas style font string.
OptionalfontThe font size, as a CSS size string.
OptionalfontAny addition font styles, such as 'bold'.
OptionalletterThe amount to add to the spacing between characters. Can be a negative or positive number.
OptionallineThe amount to add to the font height to achieve the overall line height.
OptionalmaxThe maximum number of lines to display within the Text object.
OptionalmetricsA Text Metrics object. Use this to avoid expensive font size calculations in text heavy games.
OptionalpaddingA Text Padding object.
OptionalresolutionSets the resolution (DPI setting) of the Text object. Leave at zero for it to use the game resolution.
OptionalrtlSet to true if this Text object should render from right-to-left.
OptionalshadowThe Text shadow configuration object.
OptionalstrokeThe color used to stroke the Text if the strokeThickness property is greater than zero.
OptionalstrokeThe thickness of the stroke around the Text. Set to zero for no stroke.
OptionaltestThis is the string used to aid Canvas in calculating the height of the font.
OptionalwordThe Text Word wrap configuration object.
A Text Style configuration object as used by the Text Game Object.