dist/bundle.js
/**
 * Loads a font from a file. The callback throws an error message as the first parameter if it fails
 * and the font as an ArrayBuffer in the second parameter if it succeeds.
 * @param  {string} path - The path of the file
 * @param  {Function} callback - The function to call when the font load completes
 */
Loads a font from a file. The callback throws an error message as the first parameter if it fails
and the font as an ArrayBuffer in the second parameter if it succeeds.
@param  {string} path - The path of the file
@param  {Function} callback - The function to call when the font load completes
Loads a font from a file . The callback throws an error message as the first parameter if it fails and the font as an ArrayBuffer in the second parameter if it succeeds . @param { string } path - The path of the file @param { Function } callback - The function to call when the font load completes
function loadFromFile(path$$1, callback) {
    var fs = require$$2;
    fs.readFile(path$$1, function(err, buffer) {
        if (err) {
            return callback(err.message);
        }
        callback(null, util.nodeBufferToArrayBuffer(buffer));
    });
}
function loadFromFile ( path$$1 , callback ) { var fs = require$$2 ; fs . readFile ( path$$1 , function ( err , buffer ) { if ( err ) { return callback ( err . message ) ; } callback ( null , util . nodeBufferToArrayBuffer ( buffer ) ) ; } ) ; }
Loads a font from a file.
Loads a font from a file .