This package has been deprecated

Author message:

in process (inner project)

@x-system/font-convertor

0.0.5 • Public • Published

##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.

Package Sidebar

Install

npm i @x-system/font-convertor

Weekly Downloads

2

Version

0.0.5

License

MIT

Unpacked Size

5.51 kB

Total Files

5

Last publish

Collaborators

  • tierey