summaryrefslogtreecommitdiff
path: root/tests/fonts/fonts.conf
blob: 156854217e1380c6b1aa9559e03e051302d920b1 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
  <cachedir>/tmp/cache</cachedir>

  <match target="font">
    <test name="outline" compare="eq">
      <bool>false</bool>
    </test>
    <edit name="pixelsizefixupfactor" mode="assign">
      <divide>
        <name target="pattern">pixelsize</name>
        <name target="font">pixelsize</name>
      </divide>
    </edit>
  </match>

  <match target="font">
    <test name="outline" compare="eq">
      <bool>false</bool>
    </test>
    <test name="pixelsizefixupfactor" compare="not_eq">
      <double>1.0</double>
    </test>
    <edit name="matrix" mode="assign">
      <times>
        <name>matrix</name>
        <matrix>
          <name>pixelsizefixupfactor</name> <double>0</double>
          <double>0</double> <name>pixelsizefixupfactor</name>
         </matrix>
      </times>
    </edit>
    <edit name="size" mode="assign">
      <divide>
        <name>size</name>
        <name>pixelsizefixupfactor</name>
      </divide>
    </edit>
  </match>

  <alias binding="same">
    <family>Noto Color Emoji</family>
    <default><family>emoji</family></default>
  </alias>

  <match>
    <test name="lang">
      <string>und-zsye</string>
    </test>
    <test qual="all" name="family" compare="not_eq">
      <string>emoji</string>
    </test>
    <edit name="family" mode="append" binding="strong">
      <string>emoji</string>
    </edit>
  </match>

  <alias binding="same">
    <family>emoji</family>
    <prefer>
      <family>Noto Color Emoji</family>
    </prefer>
  </alias>

  <alias>
    <family>monospace</family>
    <prefer><family>DejaVu Sans Mono</family></prefer>
  </alias>

</fontconfig>