diff options
Diffstat (limited to 'sys/font')
-rw-r--r-- | sys/font/default.nix | 38 | ||||
-rw-r--r-- | sys/font/font.xml | 22 |
2 files changed, 0 insertions, 60 deletions
diff --git a/sys/font/default.nix b/sys/font/default.nix deleted file mode 100644 index cdbf03cf..00000000 --- a/sys/font/default.nix +++ /dev/null @@ -1,38 +0,0 @@ -{ - pkgs, - lib, - ... -}: let - nerdFont = pkgs.nerdfonts.override { - fonts = [ - "SourceCodePro" - "Overpass" - "FiraCode" - ]; - }; -in { - fonts = { - packages = [ - nerdFont - pkgs.noto-fonts-emoji - ]; - fontconfig = { - # NOTE: This is responsible for color emoji support <2023-08-28> --> - /* - WARNING: This [link](https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/111#note_630720) - contains some discussion about, the below code. But it's down right now. - <2023-08-28> - */ - localConf = builtins.readFile ./font.xml; - defaultFonts = { - # FIXME: Add a serif font <2023-08-28> - serif = []; - sansSerif = lib.mkForce ["Overpass Nerd Font Propo"]; - monospace = lib.mkForce ["SauceCodePro Nerd Font Mono" "Noto Color Emoji"]; - emoji = lib.mkForce ["Noto Color Emoji"]; - }; - allowType1 = false; - allowBitmaps = false; - }; - }; -} diff --git a/sys/font/font.xml b/sys/font/font.xml deleted file mode 100644 index f3f6bb3e..00000000 --- a/sys/font/font.xml +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0"?> -<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> -<fontconfig> - <alias binding="weak"> - <family>monospace</family> - <prefer> - <family>emoji</family> - </prefer> - </alias> - <alias binding="weak"> - <family>sans-serif</family> - <prefer> - <family>emoji</family> - </prefer> - </alias> - <alias binding="weak"> - <family>serif</family> - <prefer> - <family>emoji</family> - </prefer> - </alias> -</fontconfig> |