pack-bmfonts

1.0.0 • Public • Published

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.

Package Sidebar

Install

npm i pack-bmfonts

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • mattdesl