summaryrefslogtreecommitdiff
path: root/cantarell-fontconfig.conf
blob: bc9f57467f627d96e262ba6842cf75d283d1e57f (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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<!--

     Define aliasing and other fontconfig settings for Cantarell.

-->
<fontconfig>
  <!-- Font substitution -->
  <alias binding="same">
    <family>system-ui</family>
    <accept>
      <family>Cantarell</family>
    </accept>
  </alias>

  <!-- Generic name assignment -->
  <alias>
    <family>Cantarell</family>
    <default>
      <family>system-ui</family>
    </default>
  </alias>

  <match target="pattern">
    <test qual="any" name="family">
      <string>Cantarell</string>
    </test>
    <edit name="family" mode="assign" binding="weak">
      <string>Cantarell</string>
    </edit>
  </match>
</fontconfig>