Simplify fonts module

This commit is contained in:
Erwin Boskma 2023-07-04 20:31:40 +02:00
parent 1177fd251d
commit eb4ef4bf66
Signed by: erwin
SSH key fingerprint: SHA256:9LmFDe1C6jSrEyqxxvX8NtJBmcbB105XoqyUZF092bg

View file

@ -6,85 +6,9 @@
with lib; let
cfg = config.eboskma.fonts;
iosevka-buildplans = builtins.fromTOML (builtins.readFile "${pkgs.iosevka.src}/build-plans.toml");
iosevka-aile = pkgs.iosevka.override {
privateBuildPlan = {
family = "Iosevka Aile";
desc = "Sans serif";
spacing = "quasi-proportional";
snapshotFamily = "Iosevka Aile";
snapshotFeature = { "NWID" = 0; };
export-glyph-names = true;
variants.design = {
capital-i = "serifless";
capital-j = "serifless";
capital-k = "straight-serifless";
capital-m = "flat-bottom-serifless";
capital-w = "straight-flat-top-serifless";
a = "double-storey-serifless";
d = "toothed-serifless";
e = "flat-crossbar";
f = "flat-hook-serifless";
g = "single-storey-serifless";
i = "serifless";
j = "flat-hook-serifless";
k = "straight-serifless";
l = "serifless";
r = "compact-serifless";
t = "flat-hook";
u = "toothed-serifless";
w = "straight-flat-top-serifless";
y = "straight-serifless";
long-s = "flat-hook-serifless";
eszet = "longs-s-lig";
lower-iota = "flat-tailed";
lower-lambda = "straight-turn";
cyrl-ef = "serifless";
cyrl-capital-ka = "symmetric-connected-serifless";
cyrl-ka = "symmetric-connected-serifless";
cyrl-capital-u = "straight-serifless";
at = "fourfold";
percent = "rings-continuous-slash";
};
derivingVariants.mathtt.design = {
capital-i = "serifed";
capital-j = "serifless";
capital-k = "straight-serifless";
capital-m = "flat-bottom-serifless";
capital-w = "straight-flat-top-serifless";
a = "double-storey-serifless";
d = "toothed-serifless";
e = "flat-crossbar";
f = "flat-hook-serifless";
g = "single-storey-serifless";
i = "serifed";
j = "flat-hook-serifed";
k = "straight-serifless";
l = "serifed";
r = "compact-serifless";
t = "flat-hook";
u = "toothed-serifless";
w = "straight-flat-top-serifless";
y = "straight-serifless";
long-s = "flat-hook-serifless";
eszet = "longs-s-lig";
lower-iota = "flat-tailed";
lower-lambda = "straight-turn";
cyrl-ef = "serifless";
cyrl-capital-ka = "symmetric-connected-serifless";
cyrl-ka = "symmetric-connected-serifless";
cyrl-capital-u = "straight-serifless";
at = "fourfold";
percent = "rings-continuous-slash";
};
widths.normal = {
shape = 600;
menu = 5;
css = "normal";
};
};
privateBuildPlan = iosevka-buildplans.buildPlans.iosevka-aile;
set = "aile";
};
in