tasks/google_fontface.js
// a TTF file name which should satisfy the standard format 'Name-WeightStyle'.
a TTF file name which should satisfy the standard format 'Name-WeightStyle'.
a TTF file name which should satisfy the standard format ' Name - WeightStyle ' .
function extract(filename) {
        const results = refont.exec(path.basename(unixifyPath(filename)));
        if (results === null || results.length < 2) {
            grunt.log.error(`The name of the TTF file '${filename}' is not standard`);
            return;
        }
        return [results[1], { weight: results[2], style: results[3] }];
    }
function extract ( filename ) { const results = refont . exec ( path . basename ( unixifyPath ( filename ) ) ) ; if ( results === null || results . length < 2 ) { grunt . log . error ( ` ${ filename } ` ) ; return ; } return [ results [ 1 ] , { weight : results [ 2 ] , style : results [ 3 ] } ] ; }
a TTF file name which should satisfy the standard format 'Name-WeightStyle'.
a TTF file name which should satisfy the standard format ' Name - WeightStyle ' .