# write-bmfont-binary **Repository Path**: mirrors_Jam3/write-bmfont-binary ## Basic Information - **Project Name**: write-bmfont-binary - **Description**: writes BMFont object to a binary Buffer - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-23 - **Last Updated**: 2026-03-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # write-bmfont-binary [![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges) Encodes a JSON BMFont into a binary Buffer 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). ```js var font = require('bmfont-lato') var write = require('write-bmfont-binary') //write the font object to a Buffer var buffer = write(font) fs.writeFile('fonts/Lato.bin', buffer, function(err) { if (err) throw err }) ``` ## See Also See [text-modules](https://www.npmjs.com/package/text-modules) for related modules. ## Usage [![NPM](https://nodei.co/npm/write-bmfont-binary.png)](https://www.npmjs.com/package/write-bmfont-binary) #### `buffer = write(font)` Writes the JSON `font` to a new Buffer, encoding the binary data with the BMFont spec. ## License MIT, see [LICENSE.md](http://github.com/Jam3/write-bmfont-binary/blob/master/LICENSE.md) for details.