mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-30 16:53:40 +00:00
fontconfig: stringify dpi correctly
This commit is contained in:
parent
9b29267511
commit
0fee7a2b21
@ -204,7 +204,7 @@ with lib;
|
|||||||
${optionalString (fontconfig.dpi != 0) ''
|
${optionalString (fontconfig.dpi != 0) ''
|
||||||
<match target="pattern">
|
<match target="pattern">
|
||||||
<edit name="dpi" mode="assign">
|
<edit name="dpi" mode="assign">
|
||||||
<double>${fontconfig.dpi}</double>
|
<double>${toString fontconfig.dpi}</double>
|
||||||
</edit>
|
</edit>
|
||||||
</match>
|
</match>
|
||||||
''}
|
''}
|
||||||
|
@ -25,7 +25,7 @@ let
|
|||||||
|
|
||||||
fontconfig = config.fonts.fontconfig;
|
fontconfig = config.fonts.fontconfig;
|
||||||
xresourcesXft = pkgs.writeText "Xresources-Xft" ''
|
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.antialias: ${if fontconfig.antialias then "1" else "0"}
|
||||||
Xft.rgba: ${fontconfig.subpixel.rgba}
|
Xft.rgba: ${fontconfig.subpixel.rgba}
|
||||||
Xft.lcdfilter: lcd${fontconfig.subpixel.lcdfilter}
|
Xft.lcdfilter: lcd${fontconfig.subpixel.lcdfilter}
|
||||||
|
Loading…
Reference in New Issue
Block a user