From ae75eae20fcae8d2394a44faef1aff78a4e3c1e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Fri, 23 Jan 2026 02:09:23 +0100 Subject: [PATCH] vanadium: implement conditional fontsize in fontconfig --- nix/configurations/vanadium/home/misc.nix | 40 +++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/nix/configurations/vanadium/home/misc.nix b/nix/configurations/vanadium/home/misc.nix index 2577e970..24c1aa1c 100644 --- a/nix/configurations/vanadium/home/misc.nix +++ b/nix/configurations/vanadium/home/misc.nix @@ -17,6 +17,46 @@ monospace = [ "IosevkaPTMono" ]; emoji = [ "Noto Color Emoji" ]; }; + + configFile = { + thick-iosevka = { + enable = true; + # https://www.freedesktop.org/software/fontconfig/fontconfig-user.html + # https://gist.github.com/yuttie/adb22a6c07ef8e75d82e48d5484b7ad8 + # https://github.com/N1k3YB/CS2FontChanger_ru/blob/5f1d8189220f42286d773c536ff83a49b2556da2/app.py#L227 + # + # Use the following script to test + # for size in (seq 9 15) + # echo + # echo + # for weight in {regular,medium,bold} + # echo "weight=$weight:size=$size" + # fc-match "mono:weight=$weight:size=$size" + # end + # end | less + text = /* xml */ '' + + + + + Iosevka + + weightbold bold + weightmedium medium + + size15 regular + size10 medium + bold + + + + + + + + ''; + }; + }; }; home.packages = [ pkgs.noto-fonts