dist/bundle.js
/**
 * Generate a stub glyph that can be filled with all metadata *except*
 * the "points" and "path" properties, which must be loaded only once
 * the glyph's path is actually requested for text shaping.
 * @alias opentype.ttfGlyphLoader
 * @param  {opentype.Font} font
 * @param  {number} index
 * @param  {Function} parseGlyph
 * @param  {Object} data
 * @param  {number} position
 * @param  {Function} buildPath
 * @return {opentype.Glyph}
 */
Generate a stub glyph that can be filled with all metadata *except
the "points" and "path" properties, which must be loaded only once
the glyph's path is actually requested for text shaping.
Generate a stub glyph that can be filled with all metadata * except the " points " and " path " properties which must be loaded only once the glyph ' s path is actually requested for text shaping .
function ttfGlyphLoader(font, index, parseGlyph, data, position, buildPath) {
    return function() {
        var glyph$$1 = new glyph.Glyph({index: index, font: font});
        glyph$$1.path = function() {
            parseGlyph(glyph$$1, data, position);
            var path = buildPath(font.glyphs, glyph$$1);
            path.unitsPerEm = font.unitsPerEm;
            return path;
        };
        defineDependentProperty(glyph$$1, 'xMin', '_xMin');
        defineDependentProperty(glyph$$1, 'xMax', '_xMax');
        defineDependentProperty(glyph$$1, 'yMin', '_yMin');
        defineDependentProperty(glyph$$1, 'yMax', '_yMax');
        return glyph$$1;
    };
}
function ttfGlyphLoader ( font , index , parseGlyph , data , position , buildPath ) { return function ( ) { var glyph$$1 = new glyph . Glyph ( { index : index , font : font } ) ; glyph$$1 . path = function ( ) { parseGlyph ( glyph$$1 , data , position ) ; var path = buildPath ( font . glyphs , glyph$$1 ) ; path . unitsPerEm = font . unitsPerEm ; return path ; } ; defineDependentProperty ( glyph$$1 , 'xMin' , '_xMin' ) ; defineDependentProperty ( glyph$$1 , 'xMax' , '_xMax' ) ; defineDependentProperty ( glyph$$1 , 'yMin' , '_yMin' ) ; defineDependentProperty ( glyph$$1 , 'yMax' , '_yMax' ) ; return glyph$$1 ; } ; }
Generate a stub glyph that can be filled with all metadata *except
 the "points" and "path" properties, which must be loaded only once
 the glyph's path is actually requested for text shaping.
Generate a stub glyph that can be filled with all metadata * except the " points " and " path " properties which must be loaded only once the glyph ' s path is actually requested for text shaping .