parse-bmfont-ascii
Parses ASCII (text) BMFont files.
Takes a string or Buffer:
var fs = var parse = fs
The spec for the returned JSON object is here. The input data should match the spec, see test/Nexa Light-32.fnt for an example.
See Also
See text-modules for related modules.
Usage
result = parse(data)
Parses data
, a string or Buffer that represents ASCII (text) data of an AngelCode BMFont file. The returned result
object looks like this:
pages: "sheet_0.png" "sheet_1.png" chars: chnl height id page width x y xoffset yoffset xadvance ... info: ... common: ... kernings: first second amount
License
MIT, see LICENSE.md for details.