TextFormat

private class TextFormat

BitmapFont format that's Text-based.

Constructor


new TextFormat() → {}

Public Methods


parse TextFormat.ts:62
static parse(txt: string) → {PIXI.BitmapFontData}

Convert text font data to a javascript object.

Parameters:
Name Type Description
txt string

Raw string data to be converted

Returns:
Type Description
PIXI.BitmapFontData
  • Parsed font data
test TextFormat.ts:52
static test(data: unknown) → {boolean}

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