From eb110fd3ce7badae2725120031e6019bfa1a6c59 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 27 Jun 2013 13:28:22 +0200 Subject: [PATCH] fontconfig: Set the default hinting style to "slight" This works around a bug in infinality that causes broken rendering in some cases. Issue NixOS/nixpkgs#663. Upstream suggests that "slight" is a better/safer default in any case. It also looks better, IMHO, YMMV. --- modules/config/fonts/fontconfig.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/modules/config/fonts/fontconfig.nix b/modules/config/fonts/fontconfig.nix index ce3ffdffdc9..d0478083ed3 100644 --- a/modules/config/fonts/fontconfig.nix +++ b/modules/config/fonts/fontconfig.nix @@ -30,6 +30,22 @@ with pkgs.lib; environment.etc."fonts/fonts.conf".source = pkgs.makeFontsConf { fontDirectories = config.fonts.fonts; }; + environment.etc."fonts/conf.d/00-nixos.conf".text = + '' + + + + + + + + hintslight + + + + + ''; + environment.shellInit = '' # FIXME: This variable is no longer needed, but we'll keep it