0.9.2 • Published 6 years ago
kameleon-fontconv v0.9.2
Kameleon Font Converter
A command-line tool to convert GBDF (Glyph Bitmap Distribution Format) .bdf to Kameleon font object .js.
Install
$ npm install -g kameleon-fontconvUsage
$ kameleon-fontconv -h # see help
$ kameleon-fontconv my-font.bdf # generate my-font.js
$ kameleon-fontconv my-font.bdf -t font.js # change target filename
$ kameleon-fontconv my-font.bdf --width-var # generate variable-width font
$ kameleon-fontconv my-font.bdf --use-array # generate data as arrayThe generated font object can be used by calling GraphicContext.setFont().
Editor for custom font
Raster Font Editor v0.14 - Good raster font editor for Windows.
- GBDF Format exported by Raster Font Editor (v0.14) has error in bitmap ordering.
kameleon-fontconvdetects font generator name and version in GBDF format, and fix the bitmap ordering problem automatically.