Add Extrabold weight.

This commit is contained in:
belleve 2018-07-13 14:34:32 +08:00
parent 0a8375f610
commit fd4f485222
6 changed files with 165 additions and 7 deletions

View file

@ -3,7 +3,16 @@ const path = require("path");
const argv = require("yargs").argv;
const pad = require("pad");
const possibleWeights = new Set(["thin", "extralight", "light", "book", "medium", "bold", "heavy"]);
const possibleWeights = new Set([
"thin",
"extralight",
"light",
"book",
"medium",
"bold",
"extrabold",
"heavy"
]);
const weights = argv.weights
? argv.weights.split(/ +/g).filter(w => possibleWeights.has(w))
: [...possibleWeights];