0.0.5 • Published 2 years ago

@x-system/font-convertor v0.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
2 years ago

##convert ttf to woff/woff2 and generate @font-face.

##use

const gulp          = require(`gulp`);

const fontConvertor = require(`@x-system/font-convertor`); // gulp 4 function

let options = {

    src  : [`./ttf/*.ttf`], // path to .ttf files
    dest : `./font`,        // path to font folder

    // optional 
    // ext    : ".styl", // @font-face file extention
    // folder : "$font"  // @font-face base path

}

gulp.task( "default", fontConvertor(options) )

refs

transfonter - exelent online way for convert fonts.