{"name":"parse-bmfont-ascii","version":"1.0.5","description":"parses ASCII BMFont files to a JavaScript object","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{},"devDependencies":{"tape":"^3.5.0"},"scripts":{"test":"node test/test.js"},"keywords":["ascii","parse","convert","bmfont","bm","bitmap","font","bitmaps","angel","angelcode","code","text","gl","sprite","sprites","stackgl"],"repository":{"type":"git","url":"git://github.com/mattdesl/parse-bmfont-ascii.git"},"homepage":"https://github.com/mattdesl/parse-bmfont-ascii","bugs":{"url":"https://github.com/mattdesl/parse-bmfont-ascii/issues"},"gitHead":"0821cff389d466c44c381bc3323983b8ffc2b0db","_id":"parse-bmfont-ascii@1.0.5","_shasum":"6c0ae6fc483caa657b3d203d427bfa2bcd2d6782","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"6c0ae6fc483caa657b3d203d427bfa2bcd2d6782","tarball":"http://registry-npm.ywwl.com/parse-bmfont-ascii/download/parse-bmfont-ascii-1.0.5.tgz","integrity":"sha512-c8/LZlmMLWpTCYFFhq/tihXtIMI1TV0OZ/vDBCx/1x/77SCUvB0I6SazczM3c/kYTJi/pW4NtfWKPnarEWEfHg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICmAD4VzQn3qYet+d62+SAKdjVq6SBAqVC8fU83JWNCHAiEArO0maWOw8wFcdFaBNIPr5cDrTzcOjxnU01bUIm5Nbv8="}],"size":2204,"noattachment":false,"key":"/parse-bmfont-ascii/-/parse-bmfont-ascii-1.0.5.tgz"},"directories":{},"readme":"# parse-bmfont-ascii\n\n[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)\n\nParses ASCII (text) [BMFont files](http://www.angelcode.com/products/bmfont/).\n\nTakes a string or Buffer:\n\n```js\nvar fs = require('fs')\nvar parse = require('parse-bmfont-xml')\n\nfs.readFileSync(__dirname+'/Arial.fnt', function(err, data) {\n  var result = parse(data)\n  console.log(result.info.face)   // \"Arial\"\n  console.log(result.pages)       // [ 'sheet0.png' ]\n  console.log(result.chars)       // [ ... char data ... ]\n  console.log(result.kernings)    // [ ... kernings data ... ]\n})\n```\n\nThe spec for the returned JSON object is [here](https://github.com/mattdesl/bmfont2json/wiki/JsonSpec). The input data should match the spec, see [test/Nexa Light-32.fnt](test/Nexa Light-32.fnt) for an example.\n\n## See Also\n\nSee [text-modules](https://github.com/mattdesl/text-modules) for related modules.\n\n## Usage\n\n[![NPM](https://nodei.co/npm/parse-bmfont-ascii.png)](https://www.npmjs.com/package/parse-bmfont-ascii)\n\n#### `result = parse(data)`\n\nParses `data`, a string or Buffer that represents ASCII (text) data of an AngelCode BMFont file. The returned `result` object looks like this:\n\n```js\n{\n     pages: [\n         \"sheet_0.png\", \n         \"sheet_1.png\"\n     ],\n     chars: [\n         { chnl, height, id, page, width, x, y, xoffset, yoffset, xadvance },\n         ...\n     ],\n     info: { ... },\n     common: { ... },\n     kernings: [\n         { first, second, amount }\n     ]\n}\n```\n\n## License\n\nMIT, see [LICENSE.md](http://github.com/mattdesl/parse-bmfont-ascii/blob/master/LICENSE.md) for details.\n","publish_time":1426277258070,"_cnpm_publish_time":1426277258070,"dist-tags":{"latest":"1.0.6"}}