Skip to content

Experience-Monks/write-bmfont-binary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

write-bmfont-binary

stable

Encodes a JSON BMFont into a binary Buffer as per the BMFont Spec. Can be used in Node or the browser (e.g. with browserify).

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 for related modules.

Usage

NPM

buffer = write(font)

Writes the JSON font to a new Buffer, encoding the binary data with the BMFont spec.

License

MIT, see LICENSE.md for details.

About

writes BMFont object to a binary Buffer

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published