fix SLAB spacing

This commit is contained in:
be5invis 2017-04-04 15:15:33 +08:00
parent bbdf93b611
commit 9f13713fd2
4 changed files with 67 additions and 51 deletions

View file

@ -28,14 +28,14 @@ function getMapping(options) {
fileSuffix: ""
};
let design = options.design || [];
let poststyle = options.poststyle || [];
let prestyle = options.prestyle || [];
let weight = options.weight || "book";
let slantness = options.slantness || "upright";
let hives = ["iosevka"].concat(
design,
prestyle,
["w-" + weight, "s-" + slantness],
(options.styles || {})[slantness] || [],
poststyle
design
);
let dir = [
options.dirPrefix || "",
@ -100,7 +100,7 @@ if (argv.custom) {
custom: '$(BUILD)/targets-' + argv.custom + '.mk',
name: "customized-" + argv.custom,
design: argv.design.trim().split(/ +/),
poststyle: argv.poststyle.trim().split(/ +/),
prestyle: argv.prestyle.trim().split(/ +/),
width: argv.width,
infix: argv.custom,
styles: {