From b2366655e2ee2b284f530509114bf873c1601973 Mon Sep 17 00:00:00 2001 From: nicoo Date: Wed, 5 Oct 2022 16:07:22 +0200 Subject: nixos/hidpi: Disable font hinting Per the documentation: > At high resolution (> 200 dpi) hinting will do nothing (at best); > users of such displays may want to disable this option. --- nixos/modules/hardware/video/hidpi.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nixos/modules/hardware') diff --git a/nixos/modules/hardware/video/hidpi.nix b/nixos/modules/hardware/video/hidpi.nix index 8936b92230b2e..db325976e26c0 100644 --- a/nixos/modules/hardware/video/hidpi.nix +++ b/nixos/modules/hardware/video/hidpi.nix @@ -12,8 +12,9 @@ with lib; boot.loader.systemd-boot.consoleMode = mkDefault "1"; - # Disable font anti-aliasing & sub-pixel rendering by default + # Disable font anti-aliasing, hinting, and sub-pixel rendering by default fonts.fontconfig.antialias = mkDefault false; + fonts.fontconfig.hinting.enable = mkDefault false; fonts.fontconfig.subpixel = { rgba = mkDefault "none"; lcdfilter = mkDefault "none"; -- cgit 1.4.1