summaryrefslogtreecommitdiff
path: root/conf.d/48-spacing.conf
blob: 95f394d0238883373151dedb79d066f592692a84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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>