{"_id":"parse-bmfont-binary","_rev":"323291","name":"parse-bmfont-binary","description":"reads a BMFont binary in a Buffer into a JSON object","dist-tags":{"latest":"1.0.6"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"time":{"modified":"2021-06-04T01:39:24.000Z","created":"2015-03-14T18:00:40.307Z","1.0.6":"2015-04-27T18:30:18.822Z","1.0.5":"2015-03-14T19:27:46.189Z","1.0.4":"2015-03-14T18:00:40.307Z"},"users":{"mojaray2k":true},"author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"repository":{"type":"git","url":"git://github.com/Jam3/parse-bmfont-binary.git"},"versions":{"1.0.6":{"name":"parse-bmfont-binary","version":"1.0.6","description":"reads a BMFont binary in a Buffer into a JSON 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":["bmfont","bitmap","font","angel","code","angelcode","fonts","text","layout","glyph","glyphdesigner","canvas","webgl"],"repository":{"type":"git","url":"git://github.com/Jam3/parse-bmfont-binary.git"},"homepage":"https://github.com/Jam3/parse-bmfont-binary","bugs":{"url":"https://github.com/Jam3/parse-bmfont-binary/issues"},"gitHead":"85679cb9e76d5b7f002ec8394af9729421b3e158","_id":"parse-bmfont-binary@1.0.6","_shasum":"d038b476d3e9dd9db1e11a0b0e53a22792b69006","_from":".","_npmVersion":"2.8.2","_nodeVersion":"0.10.32","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"dist":{"shasum":"d038b476d3e9dd9db1e11a0b0e53a22792b69006","size":2909,"noattachment":false,"key":"/parse-bmfont-binary/-/parse-bmfont-binary-1.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-bmfont-binary/download/parse-bmfont-binary-1.0.6.tgz"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"directories":{},"publish_time":1430159418822,"_cnpm_publish_time":1430159418822,"_hasShrinkwrap":false},"1.0.5":{"name":"parse-bmfont-binary","version":"1.0.5","description":"reads a BMFont binary in a Buffer into a JSON 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":["bmfont","bitmap","font","angel","code","angelcode","fonts","text","layout","glyph","glyphdesigner","canvas","webgl"],"repository":{"type":"git","url":"git://github.com/Jam3/parse-bmfont-binary.git"},"homepage":"https://github.com/Jam3/parse-bmfont-binary","bugs":{"url":"https://github.com/Jam3/parse-bmfont-binary/issues"},"gitHead":"f3ef0ae4a4e3db3704c7486f7605ccd41bca9c49","_id":"parse-bmfont-binary@1.0.5","_shasum":"1befee65d4ec22d17c26b87e03c47356f9320a89","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"1befee65d4ec22d17c26b87e03c47356f9320a89","size":2225,"noattachment":false,"key":"/parse-bmfont-binary/-/parse-bmfont-binary-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-bmfont-binary/download/parse-bmfont-binary-1.0.5.tgz"},"directories":{},"publish_time":1426361266189,"_cnpm_publish_time":1426361266189,"_hasShrinkwrap":false},"1.0.4":{"name":"parse-bmfont-binary","version":"1.0.4","description":"reads a BMFont binary in a Buffer into a JSON 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":["bmfont","bitmap","font","angel","code","angelcode","fonts","text","layout","glyph","glyphdesigner","canvas","webgl"],"repository":{"type":"git","url":"git://github.com/Jam3/parse-bmfont-binary.git"},"homepage":"https://github.com/Jam3/parse-bmfont-binary","bugs":{"url":"https://github.com/Jam3/parse-bmfont-binary/issues"},"gitHead":"b1d48bb1f064ad40999012a43bf67c74ac342cf7","_id":"parse-bmfont-binary@1.0.4","_shasum":"a8785003fe5fa75f760fd73f02e444c2b914f049","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"a8785003fe5fa75f760fd73f02e444c2b914f049","size":2239,"noattachment":false,"key":"/parse-bmfont-binary/-/parse-bmfont-binary-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-bmfont-binary/download/parse-bmfont-binary-1.0.4.tgz"},"directories":{},"publish_time":1426356040307,"_cnpm_publish_time":1426356040307,"_hasShrinkwrap":false}},"readme":"# parse-bmfont-binary\n\n[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)\n\nEncodes a BMFont from a binary Buffer into JSON, as per the [BMFont Spec](http://www.angelcode.com/products/bmfont/doc/file_format.html). Can be used in Node or the browser (e.g. with browserify).\n\n```js\nvar parse = require('parse-bmfont-binary')\n\nfs.readFile('fonts/Lato.bin', function(err, data) {\n  if (err) throw err\n  var font = parse(data)\n  \n  //do something with your font\n  console.log(font.info.face)\n  console.log(font.info.size)\n  console.log(font.common.lineHeight)\n  console.log(font.chars)\n  console.log(font.kernings)\n})\n```\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-binary.png)](https://www.npmjs.com/package/parse-bmfont-binary)\n\n#### `font = parse(buffer)`\n\nReads a binary BMFont Buffer and returns a new JSON representation of that font. See [here](https://github.com/mattdesl/bmfont2json/wiki/JsonSpec) for details on the return format.\n\n## License\n\nMIT, see [LICENSE.md](http://github.com/Jam3/parse-bmfont-binary/blob/master/LICENSE.md) for details.\n","_attachments":{},"homepage":"https://github.com/Jam3/parse-bmfont-binary","bugs":{"url":"https://github.com/Jam3/parse-bmfont-binary/issues"},"license":"MIT"}