XMLStringFormat

private class XMLStringFormat

BitmapFont format that's XML-based.

Constructor


new XMLStringFormat() → {}

Summary


Public Methods


parse XMLStringFormat.ts:27
static parse(xmlTxt: string) → {PIXI.BitmapFontData}

Convert the text XML into BitmapFontData that we can use.

Parameters:
Name Type Description
xmlTxt string
Returns:
Type Description
PIXI.BitmapFontData
  • Data to use for BitmapFont
test XMLStringFormat.ts:10
static test(data: unknown) → {boolean}

Check if resource refers to text 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!