Missing library from test link list.
[dcpomatic.git] / fonts / fonts.conf.osx
1 <?xml version="1.0"?>
2 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3 <fontconfig>
4
5 <cachedir>~/.fontconfig</cachedir>
6 <cachedir prefix="xdg">fontconfig</cachedir>
7
8 <!-- 
9  Artificial oblique for fonts without an italic or oblique version
10  -->
11  
12         <match target="font">
13                 <!-- check to see if the font is roman -->
14                 <test name="slant">
15                         <const>roman</const>
16                 </test>
17                 <!-- check to see if the pattern requested non-roman -->
18                 <test target="pattern" name="slant" compare="not_eq">
19                         <const>roman</const>
20                 </test>
21                 <!-- multiply the matrix to slant the font -->
22                 <edit name="matrix" mode="assign">
23                         <times>
24                                 <name>matrix</name>
25                                 <matrix><double>1</double><double>0.2</double>
26                                         <double>0</double><double>1</double>
27                                 </matrix>
28                         </times>
29                 </edit>
30                 <!-- pretend the font is oblique now -->
31                 <edit name="slant" mode="assign">
32                         <const>oblique</const>
33                 </edit>
34                 <!-- and disable embedded bitmaps for artificial oblique -->
35                 <edit name="embeddedbitmap" mode="assign">
36                         <bool>false</bool>
37                 </edit>
38         </match>
39
40 <!--
41  Synthetic emboldening for fonts that do not have bold face available
42  -->
43
44         <match target="font">
45                 <!-- check to see if the font is just regular -->
46                 <test name="weight" compare="less_eq">
47                         <const>medium</const>
48                 </test>
49                 <!-- check to see if the pattern requests bold -->
50                 <test target="pattern" name="weight" compare="more">
51                         <const>medium</const>
52                 </test>
53                 <!--
54                   set the embolden flag
55                   needed for applications using cairo, e.g. gucharmap, gedit, ...
56                 -->
57                 <edit name="embolden" mode="assign">
58                         <bool>true</bool>
59                 </edit>
60                 <!--
61                  set weight to bold
62                  needed for applications using Xft directly, e.g. Firefox, ...
63                 -->
64                 <edit name="weight" mode="assign">
65                         <const>bold</const>
66                 </edit>
67         </match>
68 </fontconfig>