Phaser.LoaderParser parses data objects from Phaser.Loader that need more preparation before they can be inserted into the Cache.
Alias for xmlBitmapFont, for backwards compatibility.
Name | Type | Argument | Default | Description |
---|---|---|---|---|
xml | object | XML data you want to parse. | ||
baseTexture | PIXI.BaseTexture | The BaseTexture this font uses. | ||
xSpacing | number | <optional> | 0 | Additional horizontal spacing between the characters. |
ySpacing | number | <optional> | 0 | Additional vertical spacing between the characters. |
The parsed Bitmap Font data.
Parse a Bitmap Font from a JSON file.
Name | Type | Argument | Default | Description |
---|---|---|---|---|
json | object | JSON data you want to parse. | ||
baseTexture | PIXI.BaseTexture | The BaseTexture this font uses. | ||
xSpacing | number | <optional> | 0 | Additional horizontal spacing between the characters. |
ySpacing | number | <optional> | 0 | Additional vertical spacing between the characters. |
The parsed Bitmap Font data.
Parse a Bitmap Font from an XML file.
Name | Type | Argument | Default | Description |
---|---|---|---|---|
xml | object | XML data you want to parse. | ||
baseTexture | PIXI.BaseTexture | The BaseTexture this font uses. | ||
xSpacing | number | <optional> | 0 | Additional horizontal spacing between the characters. |
ySpacing | number | <optional> | 0 | Additional vertical spacing between the characters. |
The parsed Bitmap Font data.
© 2016 Richard Davey, Photon Storm Ltd.
Licensed under the MIT License.
http://phaser.io/docs/2.6.2/Phaser.LoaderParser.html