render-bmfont

1.0.0 • Public • Published

render-bmfont

Renders an AngelCode BMFont text to canvas.

import * as bmpfont from 'bmpfont.js'
 
var canvas = document.createElement('canvas');
var context = canvas.getContext("2d");
 
context.drawBitmapText('fonts/arial-32', 'Hello World!', 10, 20, 200, 30);

Currently supported BMFont formats:

  • ASCII (text)
  • JSON
  • XML
  • binary

See Also

See text-modules for related modules.

Readme

Keywords

none

Package Sidebar

Install

npm i render-bmfont

Weekly Downloads

3

Version

1.0.0

License

MIT

Last publish

Collaborators

  • tufao