LoaderParser.jsonBitmapFont()

<static> jsonBitmapFont(json, baseTexture, xSpacing, ySpacing) → {object}

Parse a Bitmap Font from a JSON file.

Parameters
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.

Returns
object -

The parsed Bitmap Font data.

Source code: loader/LoaderParser.js (Line 84)
doc_phaser
2017-02-14 10:54:41
Comments
Leave a Comment

Please login to continue.