]>
Commit | Line | Data |
---|---|---|
2c6fead7 PL |
1 | <?xml version="1.0"?> |
2 | <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
2c6fead7 PL |
3 | <!-- |
4 | fonts-persian.conf | |
5 | To configure Persian fonts from The FarsiWeb Project. | |
6 | ||
7 | Copyright (C) 2005 Sharif FarsiWeb, Inc. <license@farsiweb.info> | |
8 | ||
9 | Permission to use, copy, modify, distribute, and sell this software and its | |
10 | documentation for any purpose is hereby granted without fee, provided that | |
11 | the above copyright notice appear in all copies and that both that | |
12 | copyright notice and this permission notice appear in supporting | |
13 | documentation, and that the name of Sharif FarsiWeb, Inc. not be used in | |
14 | advertising or publicity pertaining to distribution of the software without | |
15 | specific, written prior permission. Sharif FarsiWeb, Inc. makes no | |
16 | representations about the suitability of this software for any purpose. It | |
17 | is provided "as is" without express or implied warranty. | |
18 | ||
19 | SHARIF FARSIWEB, INC. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, | |
20 | INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO | |
21 | EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR | |
22 | CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, | |
23 | DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER | |
24 | TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | |
25 | PERFORMANCE OF THIS SOFTWARE. | |
26 | ||
27 | ChangeLog: | |
28 | 2005-04-03 Behdad Esfahbod: Initial revision. | |
29 | 2005-10-09 Behdad Esfahbod: Turned off back-slant and Tahoma sections. | |
30 | 2005-11-30 Behdad Esfahbod: Set Titr susbtitution size to 24 points. | |
31 | ||
32 | Todo: | |
33 | Add generic font "fantasy". Add some fonts into that category. | |
34 | Maybe add a "cursive" generic font. | |
35 | --> | |
36 | <fontconfig> | |
37 | ||
38 | ||
2c6fead7 PL |
39 | <!-- Deprecated fonts are discouraged --> |
40 | ||
41 | <!-- Nesf[2] is officially deprecated and has problematic tables --> | |
d0e2a0f3 BE |
42 | <alias binding="same"> |
43 | <family>Nesf</family> | |
44 | <accept><family>Nesf2</family></accept> | |
45 | </alias> | |
46 | <alias binding="same"> | |
47 | <family>Nesf2</family> | |
48 | <accept><family>Persian_sansserif_default</family></accept> | |
49 | </alias> | |
2c6fead7 PL |
50 | |
51 | <!-- Name changes and spelling variant aliases --> | |
52 | ||
d0e2a0f3 BE |
53 | <alias binding="same"> |
54 | <family>Nazanin</family> | |
55 | <accept><family>Nazli</family></accept> | |
56 | </alias> | |
57 | <alias binding="same"> | |
58 | <family>Lotus</family> | |
59 | <accept><family>Lotoos</family></accept> | |
60 | </alias> | |
61 | <alias binding="same"> | |
62 | <family>Yaqut</family> | |
63 | <accept><family>Yaghoot</family></accept> | |
64 | </alias> | |
65 | <alias binding="same"> | |
66 | <family>Yaghut</family> | |
67 | <accept><family>Yaghoot</family></accept> | |
68 | </alias> | |
69 | <alias binding="same"> | |
70 | <family>Traffic</family> | |
71 | <accept><family>Terafik</family></accept> | |
72 | </alias> | |
73 | <alias binding="same"> | |
74 | <family>Ferdowsi</family> | |
75 | <accept><family>Ferdosi</family></accept> | |
76 | </alias> | |
77 | <alias binding="same"> | |
78 | <family>Fantezy</family> | |
79 | <accept><family>Fantezi</family></accept> | |
80 | </alias> | |
2c6fead7 PL |
81 | |
82 | ||
83 | <!-- Classify fonts. --> | |
84 | ||
85 | <!-- Persian_title class --> | |
d0e2a0f3 BE |
86 | <alias binding="same"> |
87 | <family>Jadid</family> | |
88 | <accept><family>Persian_title</family></accept> | |
89 | </alias> | |
90 | <alias binding="same"> | |
91 | <family>Titr</family> | |
92 | <accept><family>Persian_title</family></accept> | |
93 | </alias> | |
2c6fead7 PL |
94 | |
95 | <!-- Persian_fantasy class --> | |
d0e2a0f3 BE |
96 | <alias binding="same"> |
97 | <family>Kamran</family> | |
98 | <accept> | |
99 | <family>Persian_fantasy</family> | |
100 | <family>Homa</family> | |
101 | </accept> | |
102 | </alias> | |
103 | <alias binding="same"> | |
104 | <family>Homa</family> | |
105 | <accept> | |
106 | <family>Persian_fantasy</family> | |
107 | <family>Kamran</family> | |
108 | </accept> | |
109 | </alias> | |
110 | <alias binding="same"> | |
111 | <family>Fantezi</family> | |
112 | <accept><family>Persian_fantasy</family></accept> | |
113 | </alias> | |
114 | <alias binding="same"> | |
115 | <family>Tabassom</family> | |
116 | <accept><family>Persian_fantasy</family></accept> | |
117 | </alias> | |
2c6fead7 PL |
118 | |
119 | <!-- Persian_square class --> | |
d0e2a0f3 BE |
120 | <alias binding="same"> |
121 | <family>Arshia</family> | |
122 | <accept><family>Persian_square</family></accept> | |
123 | </alias> | |
124 | <alias binding="same"> | |
125 | <family>Nasim</family> | |
126 | <accept><family>Persian_square</family></accept> | |
127 | </alias> | |
128 | <alias binding="same"> | |
129 | <family>Elham</family> | |
130 | <accept> | |
131 | <family>Persian_square</family> | |
132 | <family>Farnaz</family> | |
133 | </accept> | |
134 | </alias> | |
135 | <alias binding="same"> | |
136 | <family>Farnaz</family> | |
137 | <accept> | |
138 | <family>Persian_square</family> | |
139 | <family>Elham</family> | |
140 | </accept> | |
141 | </alias> | |
142 | <alias binding="same"> | |
143 | <family>Sina</family> | |
144 | <accept><family>Persian_square</family></accept> | |
145 | </alias> | |
2c6fead7 PL |
146 | |
147 | <!-- Font ordering per class --> | |
148 | ||
149 | <!-- Persian_title class --> | |
d0e2a0f3 BE |
150 | <alias binding="same"> |
151 | <family>Persian_title</family> | |
152 | <accept> | |
153 | <family>Titr</family> | |
154 | <family>Jadid</family> | |
155 | <family>Persian_serif</family> | |
156 | </accept> | |
157 | </alias> | |
2c6fead7 PL |
158 | |
159 | <!-- Persian_fantasy class --> | |
d0e2a0f3 BE |
160 | <alias binding="same"> |
161 | <family>Persian_fantasy</family> | |
162 | <accept> | |
163 | <family>Homa</family> | |
164 | <family>Kamran</family> | |
165 | <family>Fantezi</family> | |
166 | <family>Tabassom</family> | |
167 | <family>Persian_square</family> | |
168 | </accept> | |
169 | </alias> | |
2c6fead7 PL |
170 | |
171 | <!-- Persian_square class --> | |
d0e2a0f3 BE |
172 | <alias binding="same"> |
173 | <family>Persian_square</family> | |
174 | <accept> | |
175 | <family>Arshia</family> | |
176 | <family>Elham</family> | |
177 | <family>Farnaz</family> | |
178 | <family>Nasim</family> | |
179 | <family>Sina</family> | |
180 | <family>Persian_serif</family> | |
181 | </accept> | |
182 | </alias> | |
2c6fead7 PL |
183 | |
184 | <!-- Register the fonts that we actually do have --> | |
185 | ||
186 | <match target="font"> | |
187 | <test name="family"> | |
188 | <string>Elham</string> | |
189 | </test> | |
190 | <edit name="foundry"> | |
191 | <string>farsiweb</string> | |
192 | </edit> | |
193 | </match> | |
194 | ||
195 | <match target="font"> | |
196 | <test name="family"> | |
197 | <string>Homa</string> | |
198 | </test> | |
199 | <edit name="foundry"> | |
200 | <string>farsiweb</string> | |
201 | </edit> | |
2c6fead7 PL |
202 | </match> |
203 | ||
204 | <match target="font"> | |
205 | <test name="family"> | |
206 | <string>Koodak</string> | |
207 | </test> | |
208 | <edit name="foundry"> | |
209 | <string>farsiweb</string> | |
210 | </edit> | |
2c6fead7 PL |
211 | </match> |
212 | ||
213 | <match target="font"> | |
214 | <test name="family"> | |
215 | <string>Nazli</string> | |
216 | </test> | |
217 | <edit name="foundry"> | |
218 | <string>farsiweb</string> | |
219 | </edit> | |
220 | </match> | |
221 | ||
222 | <match target="font"> | |
223 | <test name="family"> | |
224 | <string>Roya</string> | |
225 | </test> | |
226 | <edit name="foundry"> | |
227 | <string>farsiweb</string> | |
228 | </edit> | |
229 | </match> | |
230 | ||
231 | <match target="font"> | |
232 | <test name="family"> | |
233 | <string>Terafik</string> | |
234 | </test> | |
235 | <edit name="foundry"> | |
236 | <string>farsiweb</string> | |
237 | </edit> | |
238 | </match> | |
239 | ||
240 | <match target="font"> | |
241 | <test name="family"> | |
242 | <string>Titr</string> | |
243 | </test> | |
244 | <edit name="foundry"> | |
245 | <string>farsiweb</string> | |
246 | </edit> | |
247 | </match> | |
248 | ||
249 | ||
250 | <!-- Our fonts should oblique to the other side (TURNED-OFF) --> | |
251 | ||
252 | <match target="font"> | |
253 | <test name="foundry"> | |
254 | <!--string>farsiweb</string--> | |
255 | <string>TURNED-OFF</string> | |
256 | </test> | |
257 | <test name="foundry"> | |
258 | <string>farsiweb</string> | |
259 | </test> | |
260 | <!-- check to see if the font is roman --> | |
261 | <test name="slant"> | |
262 | <const>roman</const> | |
263 | </test> | |
264 | <!-- check to see if the pattern requested non-roman --> | |
265 | <test target="pattern" name="slant" compare="not_eq"> | |
266 | <const>roman</const> | |
267 | </test> | |
268 | <!-- multiply the matrix to slant the font --> | |
269 | <edit name="matrix" mode="assign"> | |
270 | <times> | |
271 | <name>matrix</name> | |
272 | <matrix><double>1</double><double>-0.2</double> | |
273 | <double>0</double><double>1</double> | |
274 | </matrix> | |
275 | </times> | |
276 | </edit> | |
277 | <!-- pretend the font is oblique now --> | |
278 | <edit name="slant" mode="assign"> | |
279 | <const>oblique</const> | |
280 | </edit> | |
281 | </match> | |
282 | ||
283 | ||
284 | <!-- | |
285 | We can't hint our fonts well, so turn off hinting. | |
286 | Moreover, the bitmaps we have designed (well, they | |
287 | have designed), suck, so disable them too. | |
288 | --> | |
289 | ||
290 | <match target="font"> | |
291 | <test name="foundry"> | |
292 | <string>farsiweb</string> | |
293 | </test> | |
294 | <edit name="autohint"> | |
295 | <bool>false</bool> | |
296 | </edit> | |
297 | <edit name="hinting"> | |
298 | <bool>false</bool> | |
299 | </edit> | |
9fb0e074 | 300 | <edit name="embeddedbitmap"> |
2c6fead7 PL |
301 | <bool>false</bool> |
302 | </edit> | |
303 | </match> | |
304 | ||
305 | ||
306 | <!-- Alias our fonts to common families --> | |
307 | ||
308 | <!-- Persian serif fonts --> | |
309 | <alias> | |
310 | <family>serif</family> | |
311 | <accept> | |
312 | <family>Nazli</family> | |
313 | <family>Lotoos</family> | |
314 | <family>Mitra</family> | |
315 | <family>Ferdosi</family> | |
316 | <family>Badr</family> | |
317 | <family>Zar</family> | |
318 | </accept> | |
319 | </alias> | |
320 | ||
321 | <!-- Persian sans-serif fonts --> | |
322 | <alias> | |
323 | <family>sans-serif</family> | |
324 | <accept> | |
325 | <family>Roya</family> | |
326 | <family>Koodak</family> | |
327 | <family>Terafik</family> | |
328 | </accept> | |
329 | </alias> | |
330 | ||
331 | <!-- Persian monospace fonts --> | |
332 | <alias> | |
333 | <family>monospace</family> | |
334 | <accept> | |
335 | <!-- Not really monospace --> | |
336 | <family>Terafik</family> | |
337 | </accept> | |
338 | </alias> | |
339 | ||
340 | ||
341 | <!-- Use Titr in titles --> | |
342 | ||
343 | <!-- Both serif... --> | |
344 | <match> | |
345 | <test name="family"> | |
346 | <string>serif</string> | |
347 | </test> | |
348 | <test name="weight" compare="more_eq"> | |
349 | <int>200</int> | |
350 | </test> | |
351 | <test name="size" compare="more_eq"> | |
352 | <double>24</double> | |
353 | </test> | |
354 | <edit name="family" mode="prepend"> | |
355 | <string>Titr</string> | |
356 | </edit> | |
357 | </match> | |
358 | ||
359 | <!-- and sans-serif. --> | |
360 | <match> | |
361 | <test name="family"> | |
362 | <string>sans-serif</string> | |
363 | </test> | |
364 | <test name="weight" compare="more_eq"> | |
365 | <int>200</int> | |
366 | </test> | |
367 | <test name="size" compare="more_eq"> | |
368 | <double>24</double> | |
369 | </test> | |
370 | <edit name="family" mode="prepend"> | |
371 | <string>Titr</string> | |
372 | </edit> | |
373 | </match> | |
374 | ||
375 | <!-- and more. --> | |
376 | <match> | |
377 | <test name="family"> | |
378 | <string>Persian_sansserif_default</string> | |
379 | </test> | |
380 | <test name="weight" compare="more_eq"> | |
381 | <int>200</int> | |
382 | </test> | |
383 | <test name="size" compare="more_eq"> | |
384 | <double>24</double> | |
385 | </test> | |
386 | <edit name="family" mode="prepend" binding="same"> | |
387 | <string>Titr</string> | |
388 | </edit> | |
389 | </match> | |
390 | ||
391 | ||
392 | <!-- Default substituted for deprecated sans-serif fonts --> | |
393 | ||
394 | <match> | |
395 | <test name="family"> | |
396 | <string>Persian_sansserif_default</string> | |
397 | </test> | |
398 | <edit name="family" mode="assign" binding="same"> | |
399 | <string>Roya</string> | |
400 | </edit> | |
401 | </match> | |
402 | ||
403 | </fontconfig> |