summarylogtreecommitdiffstats
path: root/44-source-han-mono-cn.conf
blob: d35bba8f432845867f3b923da8ed9730e02d8bfe (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
26
27
28
29
30
31
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
	<!-- 
	    - Medium variant is used instead of Regular on Qt apps:
		https://bugs.launchpad.net/ubuntu-font-family/+bug/744812
		- Medium and Bold looks the same in certain applications:
		https://bugs.launchpad.net/ubuntu/+source/gnome-specimen/+bug/813373
	-->

	<match target="scan">
		<test name="fullname" compare="eq">
			<string>Source Han Mono SC Medium</string>
		</test>
		<edit name="weight" mode="assign">
			<const>demibold</const>
		</edit>
	</match>
	
    <match>
        <test name="lang" compare="contains">
            <string>zh-cn</string>
        </test>
        <test name="family">
            <string>monospace</string>
        </test>
        <edit name="family" mode="prepend">
            <string>Source Han Mono SC</string>
        </edit>
    </match>
</fontconfig>