summaryrefslogtreecommitdiff
path: root/conf.d/48-spacing.conf
diff options
context:
space:
mode:
Diffstat (limited to 'conf.d/48-spacing.conf')
-rw-r--r--conf.d/48-spacing.conf25
1 files changed, 25 insertions, 0 deletions
diff --git a/conf.d/48-spacing.conf b/conf.d/48-spacing.conf
new file mode 100644
index 0000000..95f394d
--- /dev/null
+++ b/conf.d/48-spacing.conf
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
+<fontconfig>
+ <description>Add mono to the family when no generic name and spacing is 100</description>
+<!--
+ If the font has no generic name and spacing 100, add mono
+ -->
+ <match target="pattern">
+ <test qual="all" name="family" compare="not_eq">
+ <string>sans-serif</string>
+ </test>
+ <test qual="all" name="family" compare="not_eq">
+ <string>serif</string>
+ </test>
+ <test qual="all" name="family" compare="not_eq">
+ <string>monospace</string>
+ </test>
+ <test qual="all" name="spacing" compare="eq">
+ <int>100</int>
+ </test>
+ <edit name="family" mode="append_last">
+ <string>monospace</string>
+ </edit>
+ </match>
+</fontconfig>