fontmin-wawoff2

0.0.2 • Public • Published

fontmin-wawoff2

Build Status NPM version Downloads Dependencies

wawoff2 fontmin plugin

Install

$ npm install --save fontmin-wawoff2

Usage

Fontmin convert font.ttf to font.woff2 as https://www.w3.org/TR/2018/REC-WOFF2-20180301/

var Fontmin = require('fontmin');
var wawoff2 = require('fontmin-wawoff2');
 
var fontmin = new Fontmin()
    .src('fonts/*.ttf')
    .use(Fontmin.glyph({text: 'hello world'}))
    .use(wawoff2())
    .dest('build/fonts');
 
fontmin.run(function (err, files) {
    if (err) {
        throw err;
    }
 
    console.log('Files woff2 successfully!');
});

Related

Package Sidebar

Install

npm i fontmin-wawoff2

Weekly Downloads

58

Version

0.0.2

License

MIT

Unpacked Size

4.52 kB

Total Files

4

Last publish

Collaborators

  • junmer