]> git.wh0rd.org Git - fontconfig.git/blob - conf.d/30-metric-aliases.conf
Use correct autoconf variable
[fontconfig.git] / conf.d / 30-metric-aliases.conf
1 <?xml version="1.0"?>
2 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3 <fontconfig>
4
5         <!-- Alias similar/metric-compatible families from various sources:
6
7                 PostScript fonts:
8                         Helvetica
9                         Times
10                         Courier
11                 URW fonts:
12                         Nimbus Sans L
13                         Nimbus Roman No9 L
14                         Nimbus Mono L
15
16                 Microsoft fonts:
17                         Arial
18                         Times New Roman
19                         Courier New
20                 Liberation fonts:
21                         Liberation Sans
22                         Liberation Serif
23                         Liberation Mono
24                 StarOffice fonts:
25                         Albany
26                         Thorndale
27                         Cumberland
28                 AMT fonts:
29                         Albany AMT
30                         Thorndale AMT
31                         Cumberland AMT
32
33              Of these, URW fonts are design compatible with PostScrict fonts,
34              and the Liberation, StarOffice, and AMT ones are compatible with
35              Microsoft fonts.
36
37              We want for each of them to fallback to any of these
38              available, but in an order preferring similar designs
39              first.  We do this in three steps:
40
41                 1) Alias each specific to it's generic family.
42                    eg. Liberation Sans to Arial
43
44                 2) Weak alias each generic to the other generic of its family.
45                    eg. Arial to Helvetica
46
47                 3) Alias each generic to its specifics.
48                    eg. Arial to Liberation Sans, Albany, and Albany AMT
49         -->
50
51 <!-- Map specifics to generics -->
52
53         <!-- PostScript -->
54         <alias binding="same">
55           <family>Nimbus Sans L</family>
56           <default>
57           <family>Helvetica</family>
58           </default>
59         </alias>
60
61         <alias binding="same">
62           <family>Nimbus Roman No9 L</family>
63           <default>
64           <family>Times</family>
65           </default>
66         </alias>
67
68         <alias binding="same">
69           <family>Nimbus Mono L</family>
70           <default>
71           <family>Courier</family>
72           </default>
73         </alias>
74
75
76         <!-- Microsoft -->
77         <alias binding="same">
78           <family>Liberation Sans</family>
79           <family>Albany</family>
80           <family>Albany AMT</family>
81           <default>
82           <family>Arial</family>
83           </default>
84         </alias>
85
86         <alias binding="same">
87           <family>Liberation Serif</family>
88           <family>Thorndale</family>
89           <family>Thorndale AMT</family>
90           <default>
91           <family>Times New Roman</family>
92           </default>
93         </alias>
94
95         <alias binding="same">
96           <family>Liberation Mono</family>
97           <family>Cumberland</family>
98           <family>Cumberland AMT</family>
99           <default>
100           <family>Courier New</family>
101           </default>
102         </alias>
103
104
105
106 <!-- Accept the other group as fallback -->
107
108
109         <!-- PostScript -->
110         <alias>
111           <family>Helvetica</family>
112           <default>
113           <family>Arial</family>
114           </default>
115         </alias>
116
117         <alias>
118           <family>Times</family>
119           <default>
120           <family>Times New Roman</family>
121           </default>
122         </alias>
123
124         <alias>
125           <family>Courier</family>
126           <default>
127           <family>Courier New</family>
128           </default>
129         </alias>
130
131
132         <!-- Microsoft -->
133         <alias>
134           <family>Arial</family>
135           <default>
136           <family>Helvetica</family>
137           </default>
138         </alias>
139
140         <alias>
141           <family>Times New Roman</family>
142           <default>
143           <family>Times</family>
144           </default>
145         </alias>
146
147         <alias>
148           <family>Courier New</family>
149           <default>
150           <family>Courier</family>
151           </default>
152         </alias>
153
154
155
156 <!-- Map generics to specifics -->
157
158
159         <!-- PostScript -->
160         <alias binding="same">
161           <family>Helvetica</family>
162           <accept>
163           <family>Nimbus Sans L</family>
164           </accept>
165         </alias>
166
167         <alias binding="same">
168           <family>Times</family>
169           <accept>
170           <family>Nimbus Roman No9 L</family>
171           </accept>
172         </alias>
173
174         <alias binding="same">
175           <family>Courier</family>
176           <accept>
177           <family>Nimbus Mono L</family>
178           </accept>
179         </alias>
180
181
182         <!-- Microsoft -->
183         <alias binding="same">
184           <family>Arial</family>
185           <accept>
186           <family>Liberation Sans</family>
187           <family>Albany</family>
188           <family>Albany AMT</family>
189           </accept>
190         </alias>
191
192         <alias binding="same">
193           <family>Times New Roman</family>
194           <accept>
195           <family>Liberation Serif</family>
196           <family>Thorndale</family>
197           <family>Thorndale AMT</family>
198           </accept>
199         </alias>
200
201         <alias binding="same">
202           <family>Courier New</family>
203           <accept>
204           <family>Liberation Mono</family>
205           <family>Cumberland</family>
206           <family>Cumberland AMT</family>
207           </accept>
208         </alias>
209
210
211 </fontconfig>