Options
All
  • Public
  • Public/Protected
  • All
Menu

TextStyler is a tool for stylizing Phaser.Text using markup style tags. One or more styles can be defined as a SZ.ITextStylerInfo. The Phaser.Text.text property should contain the tagged text. Calling TextStyler.applyStyles() will then parse the text object and style it accordingly.

While also making styling text easier, this is used to fix the Phaser.Text.addFontWeight() bug on iOS devices. (bug 15603)

For Example: "This text is bold!" -> applies bold face to 'bold!' "This text is bold!" -> applies bold face to 'bold!'

param

Phaser.Text object with a the tagged text property

param

One or more styles

param

Optional default style for text not styled by a tag

Hierarchy

  • TextStyler

Index

Methods

Methods

Static applyStyles