fonts: Alias “system-ui” to “sans-serif”

Because it is Cantarell by default (?)
This commit is contained in:
Simon Bruder 2020-09-26 18:10:22 +02:00
parent 58ddb029ff
commit 1e8a7ee19f
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -15,10 +15,24 @@
enableDefaultFonts = true; enableDefaultFonts = true;
enableFontDir = true; enableFontDir = true;
fontconfig.defaultFonts = { fontconfig = {
defaultFonts = {
monospace = [ "Iosevka Nerd Font" "Source Han Sans" ]; monospace = [ "Iosevka Nerd Font" "Source Han Sans" ];
sansSerif = [ "Roboto" "Source Han Sans" ]; sansSerif = [ "Roboto" "Source Han Sans" ];
serif = [ "Georgia" "Source Han Serif" ]; serif = [ "Georgia" "Source Han Serif" ];
}; };
localConf = ''
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<alias>
<family>system-ui</family>
<prefer>
<family>sans-serif</family>
</prefer>
</alias>
</fontconfig>
'';
};
}; };
} }