0.0.5 • Published 2 years ago
@x-system/font-convertor v0.0.5
##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.