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