update readme
[dotfiles/.git] / .config / fontconfig / fonts.conf
1 <?xml version='1.0'?>
2 <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
3 <fontconfig>
4  <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
5   <its:translateRule selector="/fontconfig/*[not(self::description)]" translate="no"/>
6  </its:rules>
7  <!-- 
8  Artificial oblique for fonts without an italic or oblique version
9  -->
10  <match target="font">
11   <!-- check to see if the font is roman -->
12   <test name="slant">
13    <const>roman</const>
14   </test>
15   <!-- check to see if the pattern requested non-roman -->
16   <test target="pattern" compare="not_eq" name="slant">
17    <const>roman</const>
18   </test>
19   <!-- multiply the matrix to slant the font -->
20   <edit name="matrix" mode="assign">
21    <times>
22     <name>matrix</name>
23     <matrix>
24      <double>1</double>
25      <double>0.2</double>
26      <double>0</double>
27      <double>1</double>
28     </matrix>
29    </times>
30   </edit>
31   <!-- pretend the font is oblique now -->
32   <edit name="slant" mode="assign">
33    <const>oblique</const>
34   </edit>
35   <!-- and disable embedded bitmaps for artificial oblique -->
36   <edit name="embeddedbitmap" mode="assign">
37    <bool>false</bool>
38   </edit>
39  </match>
40  <!--
41  Synthetic emboldening for fonts that do not have bold face available
42  -->
43  <match target="font">
44   <!-- check to see if the weight in the font is less than medium which possibly need emboldening -->
45   <test compare="less_eq" name="weight">
46    <const>medium</const>
47   </test>
48   <!-- check to see if the pattern requests bold -->
49   <test target="pattern" compare="more_eq" name="weight">
50    <const>bold</const>
51   </test>
52   <!--
53                   set the embolden flag
54                   needed for applications using cairo, e.g. gucharmap, gedit, ...
55                 -->
56   <edit name="embolden" mode="assign">
57    <bool>true</bool>
58   </edit>
59   <!--
60                  set weight to bold
61                  needed for applications using Xft directly, e.g. Firefox, ...
62                 -->
63   <edit name="weight" mode="assign">
64    <const>bold</const>
65   </edit>
66  </match>
67  <match target="font">
68   <edit name="rgba" mode="assign">
69    <const>none</const>
70   </edit>
71  </match>
72  <dir>~/.fonts</dir>
73  <match target="font">
74   <edit name="hinting" mode="assign">
75    <bool>true</bool>
76   </edit>
77  </match>
78  <match target="font">
79   <edit name="hintstyle" mode="assign">
80    <const>hintfull</const>
81   </edit>
82  </match>
83 </fontconfig>