aboutsummaryrefslogtreecommitdiffstats
path: root/fontconfig/fonts.conf
diff options
context:
space:
mode:
Diffstat (limited to 'fontconfig/fonts.conf')
-rw-r--r--fontconfig/fonts.conf10
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>