add poststyle assignment and expanded

This commit is contained in:
be5invis 2017-04-03 16:11:57 +08:00
parent 7f44273565
commit 9e103c3de3
3 changed files with 13 additions and 3 deletions

View file

@ -40,9 +40,11 @@ endif
ifndef oblique
oblique = normal
endif
ifndef poststyle
poststyle = nothing
endif
CREATECONFIG = node maker.js --custom $(set) --design '$(design)' --upright '$(upright)' --italic '$(italic)' --oblique '$(oblique)' > $(BUILD)/targets-$(set).mk
CREATECONFIG = node maker.js --custom $(set) --design '$(design)' --upright '$(upright)' --italic '$(italic)' --oblique '$(oblique)' --poststyle '$(poststyle)' > $(BUILD)/targets-$(set).mk
custom-config : maker.js | $(BUILD)/
$(CREATECONFIG)

View file

@ -28,12 +28,14 @@ function getMapping(options) {
fileSuffix: ""
};
let design = options.design || [];
let poststyle = options.poststyle || [];
let weight = options.weight || "book";
let slantness = options.slantness || "upright";
let hives = ["iosevka"].concat(
design,
["w-" + weight, "s-" + slantness],
(options.styles || {})[slantness] || []
(options.styles || {})[slantness] || [],
poststyle
);
let dir = [
options.dirPrefix || "",
@ -98,6 +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(/ +/),
width: argv.width,
infix: argv.custom,
styles: {

View file

@ -311,6 +311,11 @@ fullwidth_codes = [
8243, #″
]
# Expanded : I heard someone want it being wider...
[expanded.multiplies]
width = 1.15
sb = 1.15
# stress-fw : force distinguish full-widths
[stress-fw]
stressFW = true