]> git.wh0rd.org - fontconfig.git/blame - conf.d/65-fonts-persian.conf
Bump libtool revision in preparation for release
[fontconfig.git] / conf.d / 65-fonts-persian.conf
CommitLineData
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
3074a73b 21 EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
2c6fead7
PL
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.
a572f547 31 2008 Behdad Esfahbod: Cleanup. Add fantasy and cursive.
2c6fead7
PL
32 -->
33<fontconfig>
34
35
2c6fead7
PL
36<!-- Deprecated fonts are discouraged -->
37
38 <!-- Nesf[2] is officially deprecated and has problematic tables -->
52742ff8
BE
39 <alias binding="same">
40 <family>Nesf</family>
41 <accept><family>Nesf2</family></accept>
42 </alias>
43 <alias binding="same">
44 <family>Nesf2</family>
45 <accept><family>Persian_sansserif_default</family></accept>
46 </alias>
2c6fead7
PL
47
48<!-- Name changes and spelling variant aliases -->
49
52742ff8
BE
50 <alias binding="same">
51 <family>Nazanin</family>
52 <accept><family>Nazli</family></accept>
53 </alias>
54 <alias binding="same">
55 <family>Lotus</family>
56 <accept><family>Lotoos</family></accept>
57 </alias>
58 <alias binding="same">
59 <family>Yaqut</family>
60 <accept><family>Yaghoot</family></accept>
61 </alias>
62 <alias binding="same">
63 <family>Yaghut</family>
64 <accept><family>Yaghoot</family></accept>
65 </alias>
66 <alias binding="same">
67 <family>Traffic</family>
68 <accept><family>Terafik</family></accept>
69 </alias>
70 <alias binding="same">
71 <family>Ferdowsi</family>
72 <accept><family>Ferdosi</family></accept>
73 </alias>
74 <alias binding="same">
75 <family>Fantezy</family>
76 <accept><family>Fantezi</family></accept>
77 </alias>
2c6fead7
PL
78
79
80<!-- Classify fonts. -->
81
82 <!-- Persian_title class -->
52742ff8
BE
83 <alias binding="same">
84 <family>Jadid</family>
85 <accept><family>Persian_title</family></accept>
86 </alias>
87 <alias binding="same">
88 <family>Titr</family>
89 <accept><family>Persian_title</family></accept>
90 </alias>
2c6fead7
PL
91
92 <!-- Persian_fantasy class -->
52742ff8
BE
93 <alias binding="same">
94 <family>Kamran</family>
95 <accept>
d0e2a0f3
BE
96 <family>Persian_fantasy</family>
97 <family>Homa</family>
98 </accept>
52742ff8
BE
99 </alias>
100 <alias binding="same">
101 <family>Homa</family>
102 <accept>
d0e2a0f3
BE
103 <family>Persian_fantasy</family>
104 <family>Kamran</family>
105 </accept>
52742ff8
BE
106 </alias>
107 <alias binding="same">
108 <family>Fantezi</family>
109 <accept><family>Persian_fantasy</family></accept>
110 </alias>
111 <alias binding="same">
112 <family>Tabassom</family>
113 <accept><family>Persian_fantasy</family></accept>
114 </alias>
2c6fead7
PL
115
116 <!-- Persian_square class -->
52742ff8
BE
117 <alias binding="same">
118 <family>Arshia</family>
119 <accept><family>Persian_square</family></accept>
120 </alias>
121 <alias binding="same">
122 <family>Nasim</family>
123 <accept><family>Persian_square</family></accept>
124 </alias>
125 <alias binding="same">
126 <family>Elham</family>
127 <accept>
d0e2a0f3
BE
128 <family>Persian_square</family>
129 <family>Farnaz</family>
130 </accept>
52742ff8
BE
131 </alias>
132 <alias binding="same">
d0e2a0f3 133 <family>Farnaz</family>
52742ff8 134 <accept>
d0e2a0f3 135 <family>Persian_square</family>
52742ff8 136 <family>Elham</family>
d0e2a0f3 137 </accept>
52742ff8
BE
138 </alias>
139 <alias binding="same">
140 <family>Sina</family>
141 <accept><family>Persian_square</family></accept>
142 </alias>
2c6fead7
PL
143
144<!-- Font ordering per class -->
145
146 <!-- Persian_title class -->
52742ff8 147 <alias binding="same">
d0e2a0f3 148 <family>Persian_title</family>
52742ff8 149 <accept>
d0e2a0f3
BE
150 <family>Titr</family>
151 <family>Jadid</family>
52742ff8 152 <family>Persian_serif</family>
d0e2a0f3 153 </accept>
52742ff8 154 </alias>
2c6fead7
PL
155
156 <!-- Persian_fantasy class -->
52742ff8 157 <alias binding="same">
d0e2a0f3 158 <family>Persian_fantasy</family>
52742ff8 159 <accept>
d0e2a0f3
BE
160 <family>Homa</family>
161 <family>Kamran</family>
162 <family>Fantezi</family>
163 <family>Tabassom</family>
52742ff8 164 <family>Persian_square</family>
d0e2a0f3 165 </accept>
52742ff8 166 </alias>
2c6fead7
PL
167
168 <!-- Persian_square class -->
52742ff8 169 <alias binding="same">
d0e2a0f3 170 <family>Persian_square</family>
52742ff8 171 <accept>
d0e2a0f3
BE
172 <family>Arshia</family>
173 <family>Elham</family>
174 <family>Farnaz</family>
175 <family>Nasim</family>
176 <family>Sina</family>
52742ff8 177 <family>Persian_serif</family>
d0e2a0f3 178 </accept>
52742ff8 179 </alias>
2c6fead7
PL
180
181<!-- Register the fonts that we actually do have -->
182
627dd913 183 <match target="scan">
2c6fead7
PL
184 <test name="family">
185 <string>Elham</string>
186 </test>
187 <edit name="foundry">
188 <string>farsiweb</string>
189 </edit>
190 </match>
191
627dd913 192 <match target="scan">
2c6fead7
PL
193 <test name="family">
194 <string>Homa</string>
195 </test>
196 <edit name="foundry">
197 <string>farsiweb</string>
198 </edit>
2c6fead7
PL
199 </match>
200
627dd913 201 <match target="scan">
2c6fead7
PL
202 <test name="family">
203 <string>Koodak</string>
204 </test>
205 <edit name="foundry">
206 <string>farsiweb</string>
207 </edit>
2c6fead7
PL
208 </match>
209
627dd913 210 <match target="scan">
2c6fead7
PL
211 <test name="family">
212 <string>Nazli</string>
213 </test>
214 <edit name="foundry">
215 <string>farsiweb</string>
216 </edit>
217 </match>
218
627dd913 219 <match target="scan">
2c6fead7
PL
220 <test name="family">
221 <string>Roya</string>
222 </test>
223 <edit name="foundry">
224 <string>farsiweb</string>
225 </edit>
226 </match>
227
627dd913 228 <match target="scan">
2c6fead7
PL
229 <test name="family">
230 <string>Terafik</string>
231 </test>
232 <edit name="foundry">
233 <string>farsiweb</string>
234 </edit>
235 </match>
236
627dd913 237 <match target="scan">
2c6fead7
PL
238 <test name="family">
239 <string>Titr</string>
240 </test>
241 <edit name="foundry">
242 <string>farsiweb</string>
243 </edit>
244 </match>
245
246
247<!-- Our fonts should oblique to the other side (TURNED-OFF) -->
248
249 <match target="font">
250 <test name="foundry">
251 <!--string>farsiweb</string-->
252 <string>TURNED-OFF</string>
253 </test>
254 <test name="foundry">
255 <string>farsiweb</string>
256 </test>
257 <!-- check to see if the font is roman -->
258 <test name="slant">
259 <const>roman</const>
260 </test>
261 <!-- check to see if the pattern requested non-roman -->
262 <test target="pattern" name="slant" compare="not_eq">
263 <const>roman</const>
264 </test>
265 <!-- multiply the matrix to slant the font -->
266 <edit name="matrix" mode="assign">
267 <times>
268 <name>matrix</name>
269 <matrix><double>1</double><double>-0.2</double>
270 <double>0</double><double>1</double>
271 </matrix>
272 </times>
273 </edit>
274 <!-- pretend the font is oblique now -->
275 <edit name="slant" mode="assign">
276 <const>oblique</const>
277 </edit>
278 </match>
279
280
281<!--
282 We can't hint our fonts well, so turn off hinting.
283 Moreover, the bitmaps we have designed (well, they
284 have designed), suck, so disable them too.
285 -->
286
287 <match target="font">
288 <test name="foundry">
289 <string>farsiweb</string>
290 </test>
291 <edit name="autohint">
292 <bool>false</bool>
293 </edit>
294 <edit name="hinting">
295 <bool>false</bool>
296 </edit>
9fb0e074 297 <edit name="embeddedbitmap">
2c6fead7
PL
298 <bool>false</bool>
299 </edit>
300 </match>
301
302
303<!-- Alias our fonts to common families -->
304
305 <!-- Persian serif fonts -->
306 <alias>
307 <family>serif</family>
308 <accept>
309 <family>Nazli</family>
310 <family>Lotoos</family>
311 <family>Mitra</family>
312 <family>Ferdosi</family>
313 <family>Badr</family>
314 <family>Zar</family>
315 </accept>
316 </alias>
317
318 <!-- Persian sans-serif fonts -->
319 <alias>
320 <family>sans-serif</family>
321 <accept>
322 <family>Roya</family>
323 <family>Koodak</family>
324 <family>Terafik</family>
325 </accept>
326 </alias>
327
328 <!-- Persian monospace fonts -->
329 <alias>
330 <family>monospace</family>
331 <accept>
332 <!-- Not really monospace -->
333 <family>Terafik</family>
334 </accept>
335 </alias>
336
a572f547
BE
337 <!-- Persian fantasy fonts -->
338 <alias>
339 <family>fantasy</family>
340 <accept>
341 <family>Homa</family>
342 <family>Kamran</family>
343 <family>Fantezi</family>
344 <family>Tabassom</family>
345 </accept>
346 </alias>
347
348 <!-- Persian (and Urdu) Nastaliq/cursive fonts -->
349 <alias>
350 <family>cursive</family>
351 <accept>
352 <family>IranNastaliq</family>
353 <family>Nafees Nastaleeq</family>
354 </accept>
355 </alias>
2c6fead7
PL
356
357<!-- Use Titr in titles -->
358
359 <!-- Both serif... -->
360 <match>
361 <test name="family">
362 <string>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 sans-serif. -->
376 <match>
377 <test name="family">
378 <string>sans-serif</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">
387 <string>Titr</string>
388 </edit>
389 </match>
390
391 <!-- and more. -->
392 <match>
393 <test name="family">
394 <string>Persian_sansserif_default</string>
395 </test>
396 <test name="weight" compare="more_eq">
397 <int>200</int>
398 </test>
399 <test name="size" compare="more_eq">
400 <double>24</double>
401 </test>
402 <edit name="family" mode="prepend" binding="same">
403 <string>Titr</string>
404 </edit>
405 </match>
406
407
408<!-- Default substituted for deprecated sans-serif fonts -->
409
410 <match>
411 <test name="family">
412 <string>Persian_sansserif_default</string>
413 </test>
414 <edit name="family" mode="assign" binding="same">
415 <string>Roya</string>
416 </edit>
417 </match>
418
419</fontconfig>