var load =
Currently supported BMFont formats:
- ASCII (text)
See text-modules for related modules.
Loads a BMFont file with the
opt settings and fires the callback with
(err, font) params once finished. If
opt is a string, it is used as the URI. Otherwise the options can be:
urlthe path (in Node) or URI
binaryboolean, whether the data should be read as binary, default false
- (in node) options for
- (in browser) options for xhr
To support binary files in the browser and Node, you should use
binary: true. Otherwise the XHR request might come in the form of a UTF8 string, which will not work with binary files. This also sets up the XHR object to override mime type in older browsers.
MIT, see LICENSE.md for details.