summaryrefslogtreecommitdiffstats
path: root/.config/fontconfig/fonts.conf
blob: b6f868bdf9cc38e665336af94466df488ec2e7ce (plain) (blame)
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
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <match target="font">
  <edit mode="assign" name="rgba">
   <const>rgb</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hinting">
   <bool>true</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hintstyle">
   <const>hintslight</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="antialias">
   <bool>true</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="lcdfilter">
   <const>lcddefault</const>
  </edit>
 </match>
 <dir>~/.fonts</dir>

 <!-- Use Liberation Sans for Helvetica (instead of Nimbus Sans) -->
 <alias binding="same">
  <family>Helvetica</family>
  <prefer>
   <family>Liberation Sans</family>
  </prefer>
 </alias>

 <alias binding="strong">
  <family>sans-serif</family>
  <prefer>
   <family>FreeSans</family>
   <family>Sahel WOL</family>
   <family>Liberation Sans</family>
   <family>Roboto</family>
  </prefer>
 </alias>

 <match target="pattern">
  <test name="lang" compare="contains">
   <string>fa</string>
  </test>
  <test qual="any" name="family">
   <string>sans-serif</string>
  </test>
  <edit name="family" mode="prepend" binding="strong">
   <string>Sahel WOL</string>
  </edit>
  <edit name="family" mode="prepend" binding="strong">
   <string>FreeSans</string>
  </edit>
  <edit name="family" mode="prepend" binding="strong">
   <string>Sahel</string>
  </edit>
 </match>
</fontconfig>