VERSION II.

This commit is contained in:
belleve 2018-07-18 21:34:27 +08:00
parent 2389d422e9
commit a08eb1600c
39 changed files with 879 additions and 2503 deletions

10
utility/ttf-to-woff.js Normal file
View 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);
};