summarylogtreecommitdiffstats
path: root/44-source-han-mono-tw.conf
blob: 8fcb78727344f0c1fac90d1c84bdd444edae7846 (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
32
33
34
35
36
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>

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