2 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3 <!-- /etc/fonts/conf.d/10-fonts-persian.conf -->
6 To configure Persian fonts from The FarsiWeb Project.
8 Copyright (C) 2005 Sharif FarsiWeb, Inc. <license@farsiweb.info>
10 Permission to use, copy, modify, distribute, and sell this software and its
11 documentation for any purpose is hereby granted without fee, provided that
12 the above copyright notice appear in all copies and that both that
13 copyright notice and this permission notice appear in supporting
14 documentation, and that the name of Sharif FarsiWeb, Inc. not be used in
15 advertising or publicity pertaining to distribution of the software without
16 specific, written prior permission. Sharif FarsiWeb, Inc. makes no
17 representations about the suitability of this software for any purpose. It
18 is provided "as is" without express or implied warranty.
20 SHARIF FARSIWEB, INC. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
21 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
22 EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
23 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
24 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
25 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
26 PERFORMANCE OF THIS SOFTWARE.
29 2005-04-03 Behdad Esfahbod: Initial revision.
30 2005-10-09 Behdad Esfahbod: Turned off back-slant and Tahoma sections.
31 2005-11-30 Behdad Esfahbod: Set Titr susbtitution size to 24 points.
34 Add generic font "fantasy". Add some fonts into that category.
35 Maybe add a "cursive" generic font.
41 We don't want weak bindings. So got to use the syntactical expansion
42 of alias tag to do binding=same :(. Please support that in alias.
46 <!-- Deprecated fonts are discouraged -->
48 <!-- Nesf[2] is officially deprecated and has problematic tables -->
53 <edit name="family" mode="assign" binding="same">
54 <string>Nesf2</string>
59 <string>Nesf2</string>
61 <edit name="family" mode="assign" binding="same">
62 <string>Persian_sansserif_default</string>
66 <!-- Tahoma looks awful (TURNED-OFF) -->
69 <string>Tahoma</string>
71 <edit name="family" mode="prepend" binding="same">
72 <string>Persian_sansserif_default</string>
76 <!-- Name changes and spelling variant aliases -->
78 <!-- Changed due to trademark problems -->
81 <string>Nazanin</string>
83 <edit name="family" mode="assign" binding="same">
84 <string>Nazli</string>
89 <string>Lotus</string>
91 <edit name="family" mode="assign" binding="same">
92 <string>Lotoos</string>
96 <!-- Changed due to transcription orthography -->
99 <string>Yaqut</string>
101 <edit name="family" mode="assign" binding="same">
102 <string>Yaghoot</string>
107 <string>Yagut</string>
109 <edit name="family" mode="assign" binding="same">
110 <string>Yaghoot</string>
115 <string>Yaghut</string>
117 <edit name="family" mode="assign" binding="same">
118 <string>Yaghoot</string>
123 <string>Traffic</string>
125 <edit name="family" mode="assign" binding="same">
126 <string>Terafik</string>
131 <string>Ferdowsi</string>
133 <edit name="family" mode="assign" binding="same">
134 <string>Ferdosi</string>
139 <string>Fantezy</string>
141 <edit name="family" mode="assign" binding="same">
142 <string>Fantezi</string>
147 <!-- Classify fonts. -->
149 <!-- Persian_title class -->
152 <string>Jadid</string>
154 <edit name="family" mode="append" binding="same">
155 <string>Persian_title</string>
160 <string>Titr</string>
162 <edit name="family" mode="append" binding="same">
163 <string>Persian_title</string>
167 <!-- Persian_fantasy class -->
170 <string>Kamran</string>
172 <edit name="family" mode="append" binding="same">
173 <string>Homa</string>
175 <edit name="family" mode="append" binding="same">
176 <string>Persian_fantasy</string>
181 <string>Homa</string>
183 <edit name="family" mode="append" binding="same">
184 <string>Kamran</string>
186 <edit name="family" mode="append" binding="same">
187 <string>Persian_fantasy</string>
192 <string>Fantezi</string>
194 <edit name="family" mode="append" binding="same">
195 <string>Persian_fantasy</string>
200 <string>Tabassom</string>
202 <edit name="family" mode="append" binding="same">
203 <string>Persian_fantasy</string>
207 <!-- Persian_square class -->
210 <string>Arshia</string>
212 <edit name="family" mode="append" binding="same">
213 <string>Persian_square</string>
218 <string>Nasim</string>
220 <edit name="family" mode="append" binding="same">
221 <string>Persian_square</string>
226 <string>Elham</string>
228 <edit name="family" mode="append" binding="same">
229 <string>Farnaz</string>
231 <edit name="family" mode="append" binding="same">
232 <string>Persian_square</string>
237 <string>Farnaz</string>
239 <edit name="family" mode="append" binding="same">
240 <string>Elham</string>
242 <edit name="family" mode="append" binding="same">
243 <string>Persian_square</string>
248 <string>Sina</string>
250 <edit name="family" mode="append" binding="same">
251 <string>Persian_square</string>
255 <!-- Font ordering per class -->
257 <!-- Persian_title class -->
260 <string>Persian_title</string>
262 <edit name="family" mode="append" binding="same">
263 <string>Persian_serif</string>
265 <edit name="family" mode="append" binding="same">
266 <string>Jadid</string>
268 <edit name="family" mode="append" binding="same">
269 <string>Titr</string>
273 <!-- Persian_fantasy class -->
276 <string>Persian_fantasy</string>
278 <edit name="family" mode="append" binding="same">
279 <string>Persian_square</string>
281 <edit name="family" mode="append" binding="same">
282 <string>Tabassom</string>
284 <edit name="family" mode="append" binding="same">
285 <string>Fantezi</string>
287 <edit name="family" mode="append" binding="same">
288 <string>Kamran</string>
290 <edit name="family" mode="append" binding="same">
291 <string>Homa</string>
295 <!-- Persian_square class -->
298 <string>Persian_square</string>
300 <edit name="family" mode="append" binding="same">
301 <string>Persian_serif</string>
303 <edit name="family" mode="append" binding="same">
304 <string>Sina</string>
306 <edit name="family" mode="append" binding="same">
307 <string>Nasim</string>
309 <edit name="family" mode="append" binding="same">
310 <string>Farnaz</string>
312 <edit name="family" mode="append" binding="same">
313 <string>Elham</string>
315 <edit name="family" mode="append" binding="same">
316 <string>Arshia</string>
320 <!-- Register the fonts that we actually do have -->
322 <match target="font">
324 <string>Elham</string>
326 <edit name="foundry">
327 <string>farsiweb</string>
331 <match target="font">
333 <string>Homa</string>
335 <edit name="foundry">
336 <string>farsiweb</string>
340 <match target="font">
342 <string>Koodak</string>
344 <edit name="foundry">
345 <string>farsiweb</string>
349 <match target="font">
351 <string>Nazli</string>
353 <edit name="foundry">
354 <string>farsiweb</string>
358 <match target="font">
360 <string>Roya</string>
362 <edit name="foundry">
363 <string>farsiweb</string>
367 <match target="font">
369 <string>Terafik</string>
371 <edit name="foundry">
372 <string>farsiweb</string>
376 <match target="font">
378 <string>Titr</string>
380 <edit name="foundry">
381 <string>farsiweb</string>
386 <!-- Our fonts should oblique to the other side (TURNED-OFF) -->
388 <match target="font">
389 <test name="foundry">
390 <!--string>farsiweb</string-->
391 <string>TURNED-OFF</string>
393 <test name="foundry">
394 <string>farsiweb</string>
396 <!-- check to see if the font is roman -->
400 <!-- check to see if the pattern requested non-roman -->
401 <test target="pattern" name="slant" compare="not_eq">
404 <!-- multiply the matrix to slant the font -->
405 <edit name="matrix" mode="assign">
408 <matrix><double>1</double><double>-0.2</double>
409 <double>0</double><double>1</double>
413 <!-- pretend the font is oblique now -->
414 <edit name="slant" mode="assign">
415 <const>oblique</const>
421 We can't hint our fonts well, so turn off hinting.
422 Moreover, the bitmaps we have designed (well, they
423 have designed), suck, so disable them too.
426 <match target="font">
427 <test name="foundry">
428 <string>farsiweb</string>
430 <edit name="autohint">
433 <edit name="hinting">
436 <edit name="embeddedbitmap">
442 <!-- Alias our fonts to common families -->
444 <!-- Persian serif fonts -->
446 <family>serif</family>
448 <family>Nazli</family>
449 <family>Lotoos</family>
450 <family>Mitra</family>
451 <family>Ferdosi</family>
452 <family>Badr</family>
457 <!-- Persian sans-serif fonts -->
459 <family>sans-serif</family>
461 <family>Roya</family>
462 <family>Koodak</family>
463 <family>Terafik</family>
467 <!-- Persian monospace fonts -->
469 <family>monospace</family>
471 <!-- Not really monospace -->
472 <family>Terafik</family>
477 <!-- Use Titr in titles -->
479 <!-- Both serif... -->
482 <string>serif</string>
484 <test name="weight" compare="more_eq">
487 <test name="size" compare="more_eq">
490 <edit name="family" mode="prepend">
491 <string>Titr</string>
495 <!-- and sans-serif. -->
498 <string>sans-serif</string>
500 <test name="weight" compare="more_eq">
503 <test name="size" compare="more_eq">
506 <edit name="family" mode="prepend">
507 <string>Titr</string>
514 <string>Persian_sansserif_default</string>
516 <test name="weight" compare="more_eq">
519 <test name="size" compare="more_eq">
522 <edit name="family" mode="prepend" binding="same">
523 <string>Titr</string>
528 <!-- Default substituted for deprecated sans-serif fonts -->
532 <string>Persian_sansserif_default</string>
534 <edit name="family" mode="assign" binding="same">
535 <string>Roya</string>