XMLFormat

private class XMLFormat

BitmapFont format that's XML-based.

Constructor


new XMLFormat() → {}

Public Methods


parse XMLFormat.ts:21
static parse(xml: XMLDocument) → {PIXI.BitmapFontData}

Convert the XML into BitmapFontData that we can use.

Parameters:
Name Type Description
xml XMLDocument
Returns:
Type Description
PIXI.BitmapFontData
  • Data to use for BitmapFont
test XMLFormat.ts:9
static test(data: unknown) → {boolean}

Check if resource refers to xml font data.

Parameters:
Name Type Description
data unknown
Returns:
Type Description
boolean
  • True if resource could be treated as font data, false otherwise.

Powered by webdoc!