From eb4ef4bf6670ca2fa02bf55e49114b158c68e62d Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Tue, 4 Jul 2023 20:31:40 +0200 Subject: [PATCH] Simplify fonts module --- modules/fonts/default.nix | 80 +-------------------------------------- 1 file changed, 2 insertions(+), 78 deletions(-) diff --git a/modules/fonts/default.nix b/modules/fonts/default.nix index b68c960..cfea7b3 100644 --- a/modules/fonts/default.nix +++ b/modules/fonts/default.nix @@ -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