mirror of
https://github.com/be5invis/Iosevka.git
synced 2026-10-28 16:38:35 +00:00
11 lines
276 B
JavaScript
11 lines
276 B
JavaScript
"use strict";
|
|
const fs = require("fs");
|
|
const ttf2woff = require("ttf2woff");
|
|
|
|
module.exports = function(from, to) {
|
|
const input = fs.readFileSync(from);
|
|
const ttf = new Uint8Array(input);
|
|
const woff = Buffer.from(ttf2woff(ttf, {}).buffer);
|
|
fs.writeFileSync(to, woff);
|
|
};
|