mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00:00
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.
This commit is contained in:
parent
0cbf0605d2
commit
eb110fd3ce
@ -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 =
|
||||
''
|
||||
<?xml version='1.0'?>
|
||||
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
|
||||
<fontconfig>
|
||||
|
||||
<!-- Set the default hinting style to "slight". -->
|
||||
<match target="font">
|
||||
<edit mode="assign" name="hintstyle">
|
||||
<const>hintslight</const>
|
||||
</edit>
|
||||
</match>
|
||||
|
||||
</fontconfig>
|
||||
'';
|
||||
|
||||
environment.shellInit =
|
||||
''
|
||||
# FIXME: This variable is no longer needed, but we'll keep it
|
||||
|
Loading…
Reference in New Issue
Block a user