update Verda deps.
This commit is contained in:
parent
163ab5493f
commit
d7ad5d6432
7 changed files with 62 additions and 10 deletions
|
@ -71,11 +71,13 @@ Since version 2.0, Iosevka would no longer support building via `makefile`. To i
|
|||
# When buildPlans.<plan name>.weights is absent
|
||||
# All weights would built and mapped to default shape/CSS
|
||||
[buildPlans.iosevka-custom.weights.regular]
|
||||
shape = 400 # Weight of glyph shapes
|
||||
css = 400 # Weight of menu and CSS
|
||||
shape = 400 # Weight for glyph shapes
|
||||
menu = 400 # Weight for menu name
|
||||
css = 400 # Weight for WebFont CSS
|
||||
|
||||
[buildPlans.iosevka-custom.weights.bold]
|
||||
shape = 700
|
||||
menu = 700
|
||||
css = 700
|
||||
|
||||
# Override default building slant sets
|
||||
|
|
|
@ -178,38 +178,47 @@ from = [
|
|||
# CSS weight : affects the font menu name and webfont CSS
|
||||
[weights.thin]
|
||||
shape = 100
|
||||
menu = 100
|
||||
css = 100
|
||||
|
||||
[weights.extralight]
|
||||
shape = 200
|
||||
menu = 200
|
||||
css = 200
|
||||
|
||||
[weights.light]
|
||||
shape = 300
|
||||
menu = 300
|
||||
css = 300
|
||||
|
||||
[weights.regular]
|
||||
shape = 400
|
||||
menu = 400
|
||||
css = 400
|
||||
|
||||
[weights.medium]
|
||||
shape = 500
|
||||
menu = 500
|
||||
css = 500
|
||||
|
||||
[weights.semibold]
|
||||
shape = 600
|
||||
menu = 600
|
||||
css = 600
|
||||
|
||||
[weights.bold]
|
||||
shape = 700
|
||||
menu = 700
|
||||
css = 700
|
||||
|
||||
[weights.extrabold]
|
||||
shape = 800
|
||||
menu = 800
|
||||
css = 800
|
||||
|
||||
[weights.heavy]
|
||||
shape = 900
|
||||
menu = 900
|
||||
css = 900
|
||||
|
||||
# Slant mappings (style => CSS)
|
||||
|
|
|
@ -112,8 +112,8 @@ function getParameters(argv) {
|
|||
para.naming = {
|
||||
family: argv.family,
|
||||
version: argv.ver,
|
||||
weight: argv.weight - 0,
|
||||
slant: argv.slant
|
||||
weight: argv["menu-weight"] - 0,
|
||||
slant: argv["menu-slant"]
|
||||
};
|
||||
|
||||
return para;
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
"ttf2woff": "^2.0.1",
|
||||
"ttf2woff2": "^2.0.3",
|
||||
"unorm": "^1.4.1",
|
||||
"verda": "^0.1.5",
|
||||
"verda": "^0.1.6",
|
||||
"yargs": "^12.0.0",
|
||||
"primitive-quadify-off-curves": "^0.4.0"
|
||||
},
|
||||
|
|
27
private-build-plans.sample.toml
Normal file
27
private-build-plans.sample.toml
Normal file
|
@ -0,0 +1,27 @@
|
|||
[buildPlans.iosevka-custom] # <iosevka-custom> is your plan name
|
||||
family = "Iosevka Custom" # Font menu family name
|
||||
design = ["leading-1500", "v-i-hooky", "v-l-hooky"] # Customize styles
|
||||
|
||||
|
||||
# Override default building weights
|
||||
# When buildPlans.<plan name>.weights is absent
|
||||
# All weights would built and mapped to default shape/CSS
|
||||
[buildPlans.iosevka-custom.weights.regular]
|
||||
shape = 400 # Weight for glyph shapes
|
||||
menu = 400 # Weight for menu name
|
||||
css = 400 # Weight for webfont CSS
|
||||
|
||||
[buildPlans.iosevka-custom.weights.bold]
|
||||
shape = 700
|
||||
menu = 700
|
||||
css = 700
|
||||
# end weight section
|
||||
|
||||
|
||||
# Override default building slant sets
|
||||
# Format: <upright|italic|oblique> = <"normal"|"italic"|"oblique">
|
||||
# When this section is absent, all slants would be built.
|
||||
[buildPlans.iosevka-custom.slants]
|
||||
upright = "normal"
|
||||
italic = "italic"
|
||||
oblique = "oblique"
|
|
@ -232,6 +232,14 @@
|
|||
<span class="tag">cv53</span><span class="description"></span>
|
||||
<span class="sample" style="font-feature-settings:'cv53'">f</span><span class="sample italic" style="font-feature-settings:'cv53'">f</span>
|
||||
</li>
|
||||
</li><li>
|
||||
<span class="tag">cv54</span><span class="description"></span>
|
||||
<span class="sample" style="font-feature-settings:'cv54'">$</span><span class="sample italic" style="font-feature-settings:'cv54'">$</span>
|
||||
</li>
|
||||
</li><li>
|
||||
<span class="tag">cv55</span><span class="description"></span>
|
||||
<span class="sample" style="font-feature-settings:'cv55'">$</span><span class="sample italic" style="font-feature-settings:'cv55'">$</span>
|
||||
</li>
|
||||
</ol>
|
||||
</section>
|
||||
<section id="matrix">
|
||||
|
|
16
verdafile.js
16
verdafile.js
|
@ -1,4 +1,5 @@
|
|||
"use strict";
|
||||
|
||||
const {
|
||||
want,
|
||||
rule: { task, file, oracle, phony },
|
||||
|
@ -7,6 +8,7 @@ const {
|
|||
journal,
|
||||
argv
|
||||
} = require("verda");
|
||||
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const toml = require("toml");
|
||||
|
@ -96,9 +98,11 @@ function getSuffixSet(weights, slants) {
|
|||
mapping[suffix] = {
|
||||
hives: [`w-${weights[w].shape}`, `s-${s}`],
|
||||
weight: w,
|
||||
cssWeight: weights[w].css || w,
|
||||
menuWeight: weights[w].menu || weights[w].css || w,
|
||||
slant: s,
|
||||
cssWeight: weights[w].css,
|
||||
cssStyle: slants[s]
|
||||
cssStyle: slants[s] || s,
|
||||
menuStyle: slants[s] || s
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -132,6 +136,8 @@ oracle(`o:font-building-parameters`).def(async target => {
|
|||
name: fileName,
|
||||
family,
|
||||
hives: ["iosevka", ...preHives, ...suffixMapping[suffix].hives, ...postHives],
|
||||
menuWeight: suffixMapping[suffix].menuWeight,
|
||||
menuStyle: suffixMapping[suffix].menuStyle,
|
||||
cssWeight: suffixMapping[suffix].cssWeight,
|
||||
cssStyle: suffixMapping[suffix].cssStyle
|
||||
};
|
||||
|
@ -193,7 +199,7 @@ oracle("collection-parts-of:*").def(async (target, id) => {
|
|||
///////////////////////////////////////////////////////////
|
||||
|
||||
file(`${BUILD}/*/*.ttf`).def(async (target, prefix, suffix) => {
|
||||
const [{ hives, family, cssWeight, cssStyle }, version] = await target.need(
|
||||
const [{ hives, family, menuWeight, menuStyle }, version] = await target.need(
|
||||
`hives-of:${suffix}`,
|
||||
`o:version`
|
||||
);
|
||||
|
@ -206,8 +212,8 @@ file(`${BUILD}/*/*.ttf`).def(async (target, prefix, suffix) => {
|
|||
["--charmap", charmap],
|
||||
["--family", family],
|
||||
["--ver", version],
|
||||
["--weight", cssWeight],
|
||||
["--slant", cssStyle],
|
||||
["--menu-weight", menuWeight],
|
||||
["--menu-slant", menuStyle],
|
||||
hives
|
||||
);
|
||||
await run("otfccbuild", otd, "-o", target.path.full, "-O3", "--keep-average-char-width");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue