SpriteJS [bmGlyph](https://www.bmglyph.com/) BitmapFont extend.
npm install sprite-extend-bmfontSpriteJS bmGlyph BitmapFont extend.
Use bmGlyph to publish BitMap font.
Choose publish format cocos2d/BMFont.
Use tools/generate.js to generate bmfont file for SpriteJS
``bash`
node tools/generate.js fonts/testsprite.fnt
`html`
build for weixin
`bash`
node generate.js fonts/testsprite.fnt --weixin
Copy testsprite.png to /assets/img/testsprite.png
build with online texture
`bash`
node generate.js fonts/testsprite.fnt --src=https://p4.ssl.qhimg.com/t016ec624e084e49c16.png
build with preload resource id
`bash``
node generate.js fonts/testsprite.fnt --id=testsprite.png