1.0.0 • Published 9 years ago

pack-bmfonts v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

pack-bmfonts

experimental

Packs multiple BMFont files into a single binary buffer.

pack-bmfonts fonts/*.{xml,fnt} > fonts/packed.bin

Loads ASCII (text), XML, binary, and JSON. Accepts multiple globs as entries. See the spec for binary details, or unpack-bmfonts to extract the data.

See Also

See text-modules for related modules.

Usage

NPM

CLI

Usage:
  pack-bmfonts globs

Accepts a glob or a list of globs, prints the packed binary to stdout.

API

buffer = pack(fonts)

Packs the array of fonts (JSON objects) into a single Buffer.

License

MIT, see LICENSE.md for details.