diff options
| author | Maxwell Beck <max@rastertail.net> | 2026-07-22 21:23:39 -0500 |
|---|---|---|
| committer | Maxwell Beck <max@rastertail.net> | 2026-07-22 21:23:39 -0500 |
| commit | 9097e30beea6cb5f2cbc4612ca37b9d9521dc426 (patch) | |
| tree | 136c819e59cb055fd693ec3217eefe4a2446138c | |
| parent | bc8049135a217439db96b36941b10002c064b03b (diff) | |
Build custom Iosevka font
| -rw-r--r-- | flake.nix | 10 | ||||
| -rw-r--r-- | private-build-plans.toml | 31 |
2 files changed, 40 insertions, 1 deletions
@@ -3,13 +3,21 @@ outputs = { self }: { overlays.default = (self: pkgs: { + iosevka-rastertail = pkgs.iosevka.override { + privateBuildPlan = builtins.readFile ./private-build-plans.toml; + set = "Rastertail"; + }; + rastertype3 = pkgs.stdenvNoCC.mkDerivation rec { pname = "rastertype3"; version = "0.1.0"; src = ./.; - propagatedBuildInputs = [ pkgs.typst pkgs.gyre-fonts ]; + propagatedBuildInputs = [ + pkgs.typst + pkgs.gyre-fonts self.iosevka-rastertail + ]; installPhase = '' mkdir -p $out/typst/packages/local/rastertype3/${version}/ cp raster.typ $out/typst/packages/local/rastertype3/${version}/ diff --git a/private-build-plans.toml b/private-build-plans.toml new file mode 100644 index 0000000..09e061e --- /dev/null +++ b/private-build-plans.toml @@ -0,0 +1,31 @@ +[buildPlans.IosevkaRastertail] +family = "Iosevka Rastertail" +spacing = "normal" +serifs = "slab" +noCvSs = true +exportGlyphNames = true + + [buildPlans.IosevkaRastertail.variants] + inherits = "ss02" + +[buildPlans.IosevkaRastertail.weights.Regular] +shape = 400 +menu = 400 +css = 400 + +[buildPlans.IosevkaRastertail.weights.Bold] +shape = 700 +menu = 700 +css = 700 + +[buildPlans.IosevkaRastertail.slopes.Upright] +angle = 0 +shape = "upright" +menu = "upright" +css = "normal" + +[buildPlans.IosevkaRastertail.slopes.Italic] +angle = 9.4 +shape = "italic" +menu = "italic" +css = "italic" |
