From 7e5653c280976af97aa4210a08f1bd2a89fcfb39 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 29 Nov 2019 15:36:47 +0100 Subject: xserver: improve font setup --- system/settings/services/xserver.nix | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) (limited to 'system/settings') diff --git a/system/settings/services/xserver.nix b/system/settings/services/xserver.nix index 64bdb238..bc058a8a 100644 --- a/system/settings/services/xserver.nix +++ b/system/settings/services/xserver.nix @@ -34,19 +34,34 @@ with lib; fontconfig = { antialias = true; subpixel = mkIf config.fonts.fontconfig.antialias { - lcdfilter = "light"; + lcdfilter = "default"; + rgba = "rgb"; }; ultimate = mkIf config.fonts.fontconfig.antialias { enable = true; - preset = "ultimate3"; - substitutions = "ms"; + preset = "ultimate1"; + substitutions = "combi"; }; useEmbeddedBitmaps = !config.fonts.fontconfig.antialias; defaultFonts = { - monospace = [ "Source Code Pro" ]; - sansSerif = [ "Tahoma" ]; + monospace = [ "IBM Plex Mono" ]; + sansSerif = [ "Cantarell" ]; serif = [ "Times New Roman" ]; }; + + localConf = '' + + + + + + medium + + + false + + + ''; }; fonts = with pkgs; [ gohufont @@ -63,17 +78,13 @@ with lib; xorg.fontcursormisc xorg.fontbhlucidatypewriter100dpi ] ++ lib.optionals config.fonts.fontconfig.antialias [ + cantarell-fonts + fira fira-code fira-mono - go-font ibm-plex - liberation_ttf - mononoki - roboto - roboto-mono - roboto-slab source-code-pro source-sans-pro source-serif-pro -- cgit 1.4.1