hidpi: Use gray-scale antialiasing for fonts
For displays with high pixel density, there is no need to do subpixel anti-aliasing (which is the default) – grayscale antialiasing is enough. In terms of fontconfig, we keep antialiasing on, but tell it not to play any RGB tricks.
This commit is contained in:
parent
7027f388e2
commit
ad735b87e4
1 changed files with 8 additions and 0 deletions
|
@ -11,6 +11,14 @@ with lib;
|
|||
console.earlySetup = mkDefault true;
|
||||
boot.loader.systemd-boot.consoleMode = mkDefault "1";
|
||||
|
||||
|
||||
# Grayscale anti-aliasing for fonts
|
||||
fonts.fontconfig.antialias = mkDefault true;
|
||||
fonts.fontconfig.subpixel = {
|
||||
rgba = mkDefault "none";
|
||||
lcdfilter = mkDefault "none";
|
||||
};
|
||||
|
||||
# TODO Find reasonable defaults X11 & wayland
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue