From 74c88642afe9107c2ff1466e7ac813d9a2ccc32f Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Wed, 27 Mar 2024 22:55:37 +0000 Subject: [PATCH] Fix fonts --- hardware/p8-laptop.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hardware/p8-laptop.nix b/hardware/p8-laptop.nix index 24c2d5d..f99faff 100644 --- a/hardware/p8-laptop.nix +++ b/hardware/p8-laptop.nix @@ -15,6 +15,16 @@ ]; boot.kernelPackages = pkgs.linuxPackages_latest; + # Fix the font rendering + fonts.fontconfig = { + subpixel.rgba = "vbgr"; # Pixel order for rotated screen + + # The OLED display has √(1920² + 1200²) px / 8in ≃ 283 dpi + # Per the documentation, antialiasing, hinting, etc. have no visible effect at such high pixel densities anyhow. + # Set manually, as the hiDPI module had incorrect settings prior to NixOS 22.11; see nixpkgs#194594. + hinting.enable = false; + }; + # Provide rotation to X/Wayland services.xserver.xrandrHeads = [