2 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
5 To configure Persian fonts from The FarsiWeb Project.
7 Copyright (C) 2005 Sharif FarsiWeb, Inc. <license@farsiweb.info>
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.
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 THE AUTHOR(S) 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.
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 2008 Behdad Esfahbod: Cleanup. Add fantasy and cursive.
36 <!-- Deprecated fonts are discouraged -->
38 <!-- Nesf[2] is officially deprecated and has problematic tables -->
39 <alias binding="same">
41 <accept><family>Nesf2</family></accept>
43 <alias binding="same">
44 <family>Nesf2</family>
45 <accept><family>Persian_sansserif_default</family></accept>
48 <!-- Name changes and spelling variant aliases -->
50 <alias binding="same">
51 <family>Nazanin</family>
52 <accept><family>Nazli</family></accept>
54 <alias binding="same">
55 <family>Lotus</family>
56 <accept><family>Lotoos</family></accept>
58 <alias binding="same">
59 <family>Yaqut</family>
60 <accept><family>Yaghoot</family></accept>
62 <alias binding="same">
63 <family>Yaghut</family>
64 <accept><family>Yaghoot</family></accept>
66 <alias binding="same">
67 <family>Traffic</family>
68 <accept><family>Terafik</family></accept>
70 <alias binding="same">
71 <family>Ferdowsi</family>
72 <accept><family>Ferdosi</family></accept>
74 <alias binding="same">
75 <family>Fantezy</family>
76 <accept><family>Fantezi</family></accept>
80 <!-- Classify fonts. -->
82 <!-- Persian_title class -->
83 <alias binding="same">
84 <family>Jadid</family>
85 <accept><family>Persian_title</family></accept>
87 <alias binding="same">
89 <accept><family>Persian_title</family></accept>
92 <!-- Persian_fantasy class -->
93 <alias binding="same">
94 <family>Kamran</family>
96 <family>Persian_fantasy</family>
100 <alias binding="same">
101 <family>Homa</family>
103 <family>Persian_fantasy</family>
104 <family>Kamran</family>
107 <alias binding="same">
108 <family>Fantezi</family>
109 <accept><family>Persian_fantasy</family></accept>
111 <alias binding="same">
112 <family>Tabassom</family>
113 <accept><family>Persian_fantasy</family></accept>
116 <!-- Persian_square class -->
117 <alias binding="same">
118 <family>Arshia</family>
119 <accept><family>Persian_square</family></accept>
121 <alias binding="same">
122 <family>Nasim</family>
123 <accept><family>Persian_square</family></accept>
125 <alias binding="same">
126 <family>Elham</family>
128 <family>Persian_square</family>
129 <family>Farnaz</family>
132 <alias binding="same">
133 <family>Farnaz</family>
135 <family>Persian_square</family>
136 <family>Elham</family>
139 <alias binding="same">
140 <family>Sina</family>
141 <accept><family>Persian_square</family></accept>
144 <!-- Font ordering per class -->
146 <!-- Persian_title class -->
147 <alias binding="same">
148 <family>Persian_title</family>
150 <family>Titr</family>
151 <family>Jadid</family>
152 <family>Persian_serif</family>
156 <!-- Persian_fantasy class -->
157 <alias binding="same">
158 <family>Persian_fantasy</family>
160 <family>Homa</family>
161 <family>Kamran</family>
162 <family>Fantezi</family>
163 <family>Tabassom</family>
164 <family>Persian_square</family>
168 <!-- Persian_square class -->
169 <alias binding="same">
170 <family>Persian_square</family>
172 <family>Arshia</family>
173 <family>Elham</family>
174 <family>Farnaz</family>
175 <family>Nasim</family>
176 <family>Sina</family>
177 <family>Persian_serif</family>
181 <!-- Register the fonts that we actually do have -->
183 <match target="scan">
185 <string>Elham</string>
187 <edit name="foundry">
188 <string>farsiweb</string>
192 <match target="scan">
194 <string>Homa</string>
196 <edit name="foundry">
197 <string>farsiweb</string>
201 <match target="scan">
203 <string>Koodak</string>
205 <edit name="foundry">
206 <string>farsiweb</string>
210 <match target="scan">
212 <string>Nazli</string>
214 <edit name="foundry">
215 <string>farsiweb</string>
219 <match target="scan">
221 <string>Roya</string>
223 <edit name="foundry">
224 <string>farsiweb</string>
228 <match target="scan">
230 <string>Terafik</string>
232 <edit name="foundry">
233 <string>farsiweb</string>
237 <match target="scan">
239 <string>Titr</string>
241 <edit name="foundry">
242 <string>farsiweb</string>
247 <!-- Our fonts should oblique to the other side (TURNED-OFF) -->
249 <match target="font">
250 <test name="foundry">
251 <!--string>farsiweb</string-->
252 <string>TURNED-OFF</string>
254 <test name="foundry">
255 <string>farsiweb</string>
257 <!-- check to see if the font is roman -->
261 <!-- check to see if the pattern requested non-roman -->
262 <test target="pattern" name="slant" compare="not_eq">
265 <!-- multiply the matrix to slant the font -->
266 <edit name="matrix" mode="assign">
269 <matrix><double>1</double><double>-0.2</double>
270 <double>0</double><double>1</double>
274 <!-- pretend the font is oblique now -->
275 <edit name="slant" mode="assign">
276 <const>oblique</const>
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.
287 <match target="font">
288 <test name="foundry">
289 <string>farsiweb</string>
291 <edit name="autohint">
294 <edit name="hinting">
297 <edit name="embeddedbitmap">
303 <!-- Alias our fonts to common families -->
305 <!-- Persian serif fonts -->
307 <family>serif</family>
309 <family>Nazli</family>
310 <family>Lotoos</family>
311 <family>Mitra</family>
312 <family>Ferdosi</family>
313 <family>Badr</family>
318 <!-- Persian sans-serif fonts -->
320 <family>sans-serif</family>
322 <family>Roya</family>
323 <family>Koodak</family>
324 <family>Terafik</family>
328 <!-- Persian monospace fonts -->
330 <family>monospace</family>
332 <!-- Not really monospace -->
333 <family>Terafik</family>
337 <!-- Persian fantasy fonts -->
339 <family>fantasy</family>
341 <family>Homa</family>
342 <family>Kamran</family>
343 <family>Fantezi</family>
344 <family>Tabassom</family>
348 <!-- Persian (and Urdu) Nastaliq/cursive fonts -->
350 <family>cursive</family>
352 <family>IranNastaliq</family>
353 <family>Nafees Nastaleeq</family>
357 <!-- Use Titr in titles -->
359 <!-- Both serif... -->
362 <string>serif</string>
364 <test name="weight" compare="more_eq">
367 <test name="size" compare="more_eq">
370 <edit name="family" mode="prepend">
371 <string>Titr</string>
375 <!-- and sans-serif. -->
378 <string>sans-serif</string>
380 <test name="weight" compare="more_eq">
383 <test name="size" compare="more_eq">
386 <edit name="family" mode="prepend">
387 <string>Titr</string>
394 <string>Persian_sansserif_default</string>
396 <test name="weight" compare="more_eq">
399 <test name="size" compare="more_eq">
402 <edit name="family" mode="prepend" binding="same">
403 <string>Titr</string>
408 <!-- Default substituted for deprecated sans-serif fonts -->
412 <string>Persian_sansserif_default</string>
414 <edit name="family" mode="assign" binding="same">
415 <string>Roya</string>