spritefont-loader
Loads sprite fonts into the browser that were generated with the sprite font generator.
Installation
This module is distributed via npm:
npm install spritefont-loader
Usage
import SpritefontLoader from 'spritefont-loader';
const options = { rows: 8, cols: 4, colors: [#ffffff, #00000]};
const spriteFont = SpritefontLoader.load('spritefont.png', options);
This code is released under the MIT license, feel free to do whatever you want with it.