API Docs for: 1.4.3
Show:

BitmapFontLoader Class

The xml loader is used to load in XML bitmap font data ('xml' or 'fnt') To generate the data you can use http://www.angelcode.com/products/bmfont/ This loader will also load the image file as the data. When loaded this class will dispatch a 'loaded' event

Constructor

BitmapFontLoader

(
  • url
  • crossorigin
)

Parameters:

  • url String

    The url of the sprite sheet JSON file

  • crossorigin Boolean

    Whether requests should be treated as crossorigin

Item Index

Methods

load

()

Loads the XML font data

onLoaded

() private

Invoked when all files are loaded (xml/fnt and texture)

onXMLLoaded

() private

Invoked when XML file is loaded, parses the data

Properties

baseUrl

String

[read-only] The base url of the bitmap font data

baseUrl

String

[read-only] The texture of the bitmap font

crossorigin

Boolean

Whether the requests should be treated as cross origin

url

String

The url of the bitmap font data