Class: BitmapFontData

me. BitmapFontData

me.BitmapFontData

new BitmapFontData(data)

Class for storing relevant data from the font file.
Parameters:
Name Type Description
data String The bitmap font data pulled from the resource loader using me.loader.getBinary()
Source:
bitmapfontdata.js, line 15

Members

<static> glyphs :Object

The map of glyphs, each key is a char code.
Type:
Source:
bitmapfontdata.js, line 32

Methods

<private, static> _createSpaceGlyph()

Creates a glyph to use for the space character
Source:
bitmapfontdata.js, line 49

<private, static> _getFirstGlyph() → {me.Glyph}

Gets the first glyph in the map that is not a space character
Source:
bitmapfontdata.js, line 67
Returns:
Type
me.Glyph

<private, static> _getValueFromPair() → {String}

Gets the value from a string of pairs. For example: one=1 two=2 something=hi. Can accept the regex of /one={d}/ and returns the value of d
Source:
bitmapfontdata.js, line 85
Returns:
Type
String

<static> parse(fontData)

This parses the font data text and builds a map of glyphs containing the data for each character
Parameters:
Name Type Description
fontData String
Source:
bitmapfontdata.js, line 103
Copyright © 2011 - 2017, Olivier Biot, Jason Oster, Aaron McLeod
Documentation generated by JSDoc 3.4.0 on 2017-02-28T11:37:40+08:00 using the DocStrap template modified by codename-.