add poststyle assignment and expanded
This commit is contained in:
parent
7f44273565
commit
9e103c3de3
3 changed files with 13 additions and 3 deletions
6
makefile
6
makefile
|
@ -40,9 +40,11 @@ endif
|
||||||
ifndef oblique
|
ifndef oblique
|
||||||
oblique = normal
|
oblique = normal
|
||||||
endif
|
endif
|
||||||
|
ifndef poststyle
|
||||||
|
poststyle = nothing
|
||||||
|
endif
|
||||||
|
|
||||||
|
CREATECONFIG = node maker.js --custom $(set) --design '$(design)' --upright '$(upright)' --italic '$(italic)' --oblique '$(oblique)' --poststyle '$(poststyle)' > $(BUILD)/targets-$(set).mk
|
||||||
CREATECONFIG = node maker.js --custom $(set) --design '$(design)' --upright '$(upright)' --italic '$(italic)' --oblique '$(oblique)' > $(BUILD)/targets-$(set).mk
|
|
||||||
|
|
||||||
custom-config : maker.js | $(BUILD)/
|
custom-config : maker.js | $(BUILD)/
|
||||||
$(CREATECONFIG)
|
$(CREATECONFIG)
|
||||||
|
|
5
maker.js
5
maker.js
|
@ -28,12 +28,14 @@ function getMapping(options) {
|
||||||
fileSuffix: ""
|
fileSuffix: ""
|
||||||
};
|
};
|
||||||
let design = options.design || [];
|
let design = options.design || [];
|
||||||
|
let poststyle = options.poststyle || [];
|
||||||
let weight = options.weight || "book";
|
let weight = options.weight || "book";
|
||||||
let slantness = options.slantness || "upright";
|
let slantness = options.slantness || "upright";
|
||||||
let hives = ["iosevka"].concat(
|
let hives = ["iosevka"].concat(
|
||||||
design,
|
design,
|
||||||
["w-" + weight, "s-" + slantness],
|
["w-" + weight, "s-" + slantness],
|
||||||
(options.styles || {})[slantness] || []
|
(options.styles || {})[slantness] || [],
|
||||||
|
poststyle
|
||||||
);
|
);
|
||||||
let dir = [
|
let dir = [
|
||||||
options.dirPrefix || "",
|
options.dirPrefix || "",
|
||||||
|
@ -98,6 +100,7 @@ if (argv.custom) {
|
||||||
custom: '$(BUILD)/targets-' + argv.custom + '.mk',
|
custom: '$(BUILD)/targets-' + argv.custom + '.mk',
|
||||||
name: "customized-" + argv.custom,
|
name: "customized-" + argv.custom,
|
||||||
design: argv.design.trim().split(/ +/),
|
design: argv.design.trim().split(/ +/),
|
||||||
|
poststyle: argv.poststyle.trim().split(/ +/),
|
||||||
width: argv.width,
|
width: argv.width,
|
||||||
infix: argv.custom,
|
infix: argv.custom,
|
||||||
styles: {
|
styles: {
|
||||||
|
|
|
@ -311,6 +311,11 @@ fullwidth_codes = [
|
||||||
8243, #″
|
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 : force distinguish full-widths
|
||||||
[stress-fw]
|
[stress-fw]
|
||||||
stressFW = true
|
stressFW = true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue