1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00

fontconfig: stringify dpi correctly

This commit is contained in:
Thomas Tuegel 2015-02-01 16:18:48 -06:00
parent 9b29267511
commit 0fee7a2b21
2 changed files with 2 additions and 2 deletions

View file

@ -204,7 +204,7 @@ with lib;
${optionalString (fontconfig.dpi != 0) ''
<match target="pattern">
<edit name="dpi" mode="assign">
<double>${fontconfig.dpi}</double>
<double>${toString fontconfig.dpi}</double>
</edit>
</match>
''}

View file

@ -25,7 +25,7 @@ let
fontconfig = config.fonts.fontconfig;
xresourcesXft = pkgs.writeText "Xresources-Xft" ''
${optionalString (fontconfig.dpi != 0) ''Xft.dpi: ${fontconfig.dpi}''}
${optionalString (fontconfig.dpi != 0) ''Xft.dpi: ${toString fontconfig.dpi}''}
Xft.antialias: ${if fontconfig.antialias then "1" else "0"}
Xft.rgba: ${fontconfig.subpixel.rgba}
Xft.lcdfilter: lcd${fontconfig.subpixel.lcdfilter}