spritefont-loader
v0.0.2
Published
[![npm version][npm-svg]][npm-url] [![Build Status][travis-svg]][travis-url] [![Dependency Status][david-deps-svg]][david-deps-url] [![Dev dependency Status][david-devdeps-svg]][david-devdeps-url]
Downloads
2
Readme
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.