diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2018-03-17 13:18:01 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2018-03-17 13:18:01 +0100 |
commit | cc8c5bf04c166de940dfa6dc0fdc26f27869a0b8 (patch) | |
tree | 4e3231568bebcdd44f1d4fd931441887f620fcc8 /fontconfig | |
parent | 718fd9542bacc97117fa50e8b450018718ff363e (diff) | |
download | dotfiles-cc8c5bf04c166de940dfa6dc0fdc26f27869a0b8.tar.xz |
fontconfig: Fonts thata are monospace should not be used for sans-serif
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'fontconfig')
-rw-r--r-- | fontconfig/fonts.conf | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fontconfig/fonts.conf b/fontconfig/fonts.conf index d4d4661..7fa5bb9 100644 --- a/fontconfig/fonts.conf +++ b/fontconfig/fonts.conf @@ -63,6 +63,16 @@ </default> </alias> + <!-- by default fontconfig assumes any unrecognized font is sans-serif, so --> + <!-- the fonts above now have /both/ families. fix this. --> + <!-- note that "delete" applies to the first match --> + <!-- https://eev.ee/blog/2015/05/20/i-stared-into-the-fontconfig-and-the-fontconfig-stared-back-at-me/ --> + <match> + <test compare="eq" name="family"><string>sans-serif</string></test> + <test compare="eq" name="family"><string>monospace</string></test> + <edit mode="delete" name="family"/> + </match> + <selectfont> <rejectfont> <pattern><patelt name="family"><string>Nimbus Sans</string></patelt></pattern> |