VERSION II.
This commit is contained in:
parent
2389d422e9
commit
a08eb1600c
39 changed files with 879 additions and 2503 deletions
10
utility/ttf-to-woff.js
Normal file
10
utility/ttf-to-woff.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
"use strict";
|
||||
const fs = require("fs");
|
||||
const ttf2woff = require("ttf2woff");
|
||||
|
||||
module.exports = function(from, to) {
|
||||
const input = fs.readFileSync(from);
|
||||
var ttf = new Uint8Array(input);
|
||||
var woff = new Buffer(ttf2woff(ttf, {}).buffer);
|
||||
fs.writeFileSync(to, woff);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue