1.0.0 • Published 6 years ago
render-bmfont v1.0.0
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.
1.0.0
6 years ago