Skip to content

A woff converter for ttf or otf, support Node.js and Browsers.

Notifications You must be signed in to change notification settings

laoshu133/sfnt2woff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sfnt2woff

A woff convertrt for ttf or otf, Support for Node.js and Browsers.

Based on odemiral/woff2sfnt-sfnt2woff

Usage

With a package:

const fs = require('fs');
const sfnt2woff = require('sfnt2woff');

const buf = fs.readFileSync('/path/to/xxx.otf');
const woffBuf = sfnt2woff(buf);

fs.writeFileSync('/path/to/xxx.woff', woffBuf);

With cli:

sfnt2woff input.otf

Options:
  -o, --output  Ouput path  [default: "./"]

License

MIT

About

A woff converter for ttf or otf, support Node.js and Browsers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published