annotate toolboxes/graph_visualisation/etc/fonts/conf.avail/65-fonts-persian.conf @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
rev   line source
wolffd@0 1 <?xml version="1.0"?>
wolffd@0 2 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
wolffd@0 3 <!-- /etc/fonts/conf.d/10-fonts-persian.conf -->
wolffd@0 4 <!--
wolffd@0 5 fonts-persian.conf
wolffd@0 6 To configure Persian fonts from The FarsiWeb Project.
wolffd@0 7
wolffd@0 8 Copyright (C) 2005 Sharif FarsiWeb, Inc. <license@farsiweb.info>
wolffd@0 9
wolffd@0 10 Permission to use, copy, modify, distribute, and sell this software and its
wolffd@0 11 documentation for any purpose is hereby granted without fee, provided that
wolffd@0 12 the above copyright notice appear in all copies and that both that
wolffd@0 13 copyright notice and this permission notice appear in supporting
wolffd@0 14 documentation, and that the name of Sharif FarsiWeb, Inc. not be used in
wolffd@0 15 advertising or publicity pertaining to distribution of the software without
wolffd@0 16 specific, written prior permission. Sharif FarsiWeb, Inc. makes no
wolffd@0 17 representations about the suitability of this software for any purpose. It
wolffd@0 18 is provided "as is" without express or implied warranty.
wolffd@0 19
wolffd@0 20 SHARIF FARSIWEB, INC. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
wolffd@0 21 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
wolffd@0 22 EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
wolffd@0 23 CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
wolffd@0 24 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
wolffd@0 25 TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
wolffd@0 26 PERFORMANCE OF THIS SOFTWARE.
wolffd@0 27
wolffd@0 28 ChangeLog:
wolffd@0 29 2005-04-03 Behdad Esfahbod: Initial revision.
wolffd@0 30 2005-10-09 Behdad Esfahbod: Turned off back-slant and Tahoma sections.
wolffd@0 31 2005-11-30 Behdad Esfahbod: Set Titr susbtitution size to 24 points.
wolffd@0 32
wolffd@0 33 Todo:
wolffd@0 34 Add generic font "fantasy". Add some fonts into that category.
wolffd@0 35 Maybe add a "cursive" generic font.
wolffd@0 36 -->
wolffd@0 37 <fontconfig>
wolffd@0 38
wolffd@0 39
wolffd@0 40 <!--
wolffd@0 41 We don't want weak bindings. So got to use the syntactical expansion
wolffd@0 42 of alias tag to do binding=same :(. Please support that in alias.
wolffd@0 43 -->
wolffd@0 44
wolffd@0 45
wolffd@0 46 <!-- Deprecated fonts are discouraged -->
wolffd@0 47
wolffd@0 48 <!-- Nesf[2] is officially deprecated and has problematic tables -->
wolffd@0 49 <match>
wolffd@0 50 <test name="family">
wolffd@0 51 <string>Nesf</string>
wolffd@0 52 </test>
wolffd@0 53 <edit name="family" mode="assign" binding="same">
wolffd@0 54 <string>Nesf2</string>
wolffd@0 55 </edit>
wolffd@0 56 </match>
wolffd@0 57 <match>
wolffd@0 58 <test name="family">
wolffd@0 59 <string>Nesf2</string>
wolffd@0 60 </test>
wolffd@0 61 <edit name="family" mode="assign" binding="same">
wolffd@0 62 <string>Persian_sansserif_default</string>
wolffd@0 63 </edit>
wolffd@0 64 </match>
wolffd@0 65
wolffd@0 66 <!-- Tahoma looks awful (TURNED-OFF) -->
wolffd@0 67 <!--match>
wolffd@0 68 <test name="family">
wolffd@0 69 <string>Tahoma</string>
wolffd@0 70 </test>
wolffd@0 71 <edit name="family" mode="prepend" binding="same">
wolffd@0 72 <string>Persian_sansserif_default</string>
wolffd@0 73 </edit>
wolffd@0 74 </match-->
wolffd@0 75
wolffd@0 76 <!-- Name changes and spelling variant aliases -->
wolffd@0 77
wolffd@0 78 <!-- Changed due to trademark problems -->
wolffd@0 79 <match>
wolffd@0 80 <test name="family">
wolffd@0 81 <string>Nazanin</string>
wolffd@0 82 </test>
wolffd@0 83 <edit name="family" mode="assign" binding="same">
wolffd@0 84 <string>Nazli</string>
wolffd@0 85 </edit>
wolffd@0 86 </match>
wolffd@0 87 <match>
wolffd@0 88 <test name="family">
wolffd@0 89 <string>Lotus</string>
wolffd@0 90 </test>
wolffd@0 91 <edit name="family" mode="assign" binding="same">
wolffd@0 92 <string>Lotoos</string>
wolffd@0 93 </edit>
wolffd@0 94 </match>
wolffd@0 95
wolffd@0 96 <!-- Changed due to transcription orthography -->
wolffd@0 97 <match>
wolffd@0 98 <test name="family">
wolffd@0 99 <string>Yaqut</string>
wolffd@0 100 </test>
wolffd@0 101 <edit name="family" mode="assign" binding="same">
wolffd@0 102 <string>Yaghoot</string>
wolffd@0 103 </edit>
wolffd@0 104 </match>
wolffd@0 105 <match>
wolffd@0 106 <test name="family">
wolffd@0 107 <string>Yagut</string>
wolffd@0 108 </test>
wolffd@0 109 <edit name="family" mode="assign" binding="same">
wolffd@0 110 <string>Yaghoot</string>
wolffd@0 111 </edit>
wolffd@0 112 </match>
wolffd@0 113 <match>
wolffd@0 114 <test name="family">
wolffd@0 115 <string>Yaghut</string>
wolffd@0 116 </test>
wolffd@0 117 <edit name="family" mode="assign" binding="same">
wolffd@0 118 <string>Yaghoot</string>
wolffd@0 119 </edit>
wolffd@0 120 </match>
wolffd@0 121 <match>
wolffd@0 122 <test name="family">
wolffd@0 123 <string>Traffic</string>
wolffd@0 124 </test>
wolffd@0 125 <edit name="family" mode="assign" binding="same">
wolffd@0 126 <string>Terafik</string>
wolffd@0 127 </edit>
wolffd@0 128 </match>
wolffd@0 129 <match>
wolffd@0 130 <test name="family">
wolffd@0 131 <string>Ferdowsi</string>
wolffd@0 132 </test>
wolffd@0 133 <edit name="family" mode="assign" binding="same">
wolffd@0 134 <string>Ferdosi</string>
wolffd@0 135 </edit>
wolffd@0 136 </match>
wolffd@0 137 <match>
wolffd@0 138 <test name="family">
wolffd@0 139 <string>Fantezy</string>
wolffd@0 140 </test>
wolffd@0 141 <edit name="family" mode="assign" binding="same">
wolffd@0 142 <string>Fantezi</string>
wolffd@0 143 </edit>
wolffd@0 144 </match>
wolffd@0 145
wolffd@0 146
wolffd@0 147 <!-- Classify fonts. -->
wolffd@0 148
wolffd@0 149 <!-- Persian_title class -->
wolffd@0 150 <match>
wolffd@0 151 <test name="family">
wolffd@0 152 <string>Jadid</string>
wolffd@0 153 </test>
wolffd@0 154 <edit name="family" mode="append" binding="same">
wolffd@0 155 <string>Persian_title</string>
wolffd@0 156 </edit>
wolffd@0 157 </match>
wolffd@0 158 <match>
wolffd@0 159 <test name="family">
wolffd@0 160 <string>Titr</string>
wolffd@0 161 </test>
wolffd@0 162 <edit name="family" mode="append" binding="same">
wolffd@0 163 <string>Persian_title</string>
wolffd@0 164 </edit>
wolffd@0 165 </match>
wolffd@0 166
wolffd@0 167 <!-- Persian_fantasy class -->
wolffd@0 168 <match>
wolffd@0 169 <test name="family">
wolffd@0 170 <string>Kamran</string>
wolffd@0 171 </test>
wolffd@0 172 <edit name="family" mode="append" binding="same">
wolffd@0 173 <string>Homa</string>
wolffd@0 174 </edit>
wolffd@0 175 <edit name="family" mode="append" binding="same">
wolffd@0 176 <string>Persian_fantasy</string>
wolffd@0 177 </edit>
wolffd@0 178 </match>
wolffd@0 179 <match>
wolffd@0 180 <test name="family">
wolffd@0 181 <string>Homa</string>
wolffd@0 182 </test>
wolffd@0 183 <edit name="family" mode="append" binding="same">
wolffd@0 184 <string>Kamran</string>
wolffd@0 185 </edit>
wolffd@0 186 <edit name="family" mode="append" binding="same">
wolffd@0 187 <string>Persian_fantasy</string>
wolffd@0 188 </edit>
wolffd@0 189 </match>
wolffd@0 190 <match>
wolffd@0 191 <test name="family">
wolffd@0 192 <string>Fantezi</string>
wolffd@0 193 </test>
wolffd@0 194 <edit name="family" mode="append" binding="same">
wolffd@0 195 <string>Persian_fantasy</string>
wolffd@0 196 </edit>
wolffd@0 197 </match>
wolffd@0 198 <match>
wolffd@0 199 <test name="family">
wolffd@0 200 <string>Tabassom</string>
wolffd@0 201 </test>
wolffd@0 202 <edit name="family" mode="append" binding="same">
wolffd@0 203 <string>Persian_fantasy</string>
wolffd@0 204 </edit>
wolffd@0 205 </match>
wolffd@0 206
wolffd@0 207 <!-- Persian_square class -->
wolffd@0 208 <match>
wolffd@0 209 <test name="family">
wolffd@0 210 <string>Arshia</string>
wolffd@0 211 </test>
wolffd@0 212 <edit name="family" mode="append" binding="same">
wolffd@0 213 <string>Persian_square</string>
wolffd@0 214 </edit>
wolffd@0 215 </match>
wolffd@0 216 <match>
wolffd@0 217 <test name="family">
wolffd@0 218 <string>Nasim</string>
wolffd@0 219 </test>
wolffd@0 220 <edit name="family" mode="append" binding="same">
wolffd@0 221 <string>Persian_square</string>
wolffd@0 222 </edit>
wolffd@0 223 </match>
wolffd@0 224 <match>
wolffd@0 225 <test name="family">
wolffd@0 226 <string>Elham</string>
wolffd@0 227 </test>
wolffd@0 228 <edit name="family" mode="append" binding="same">
wolffd@0 229 <string>Farnaz</string>
wolffd@0 230 </edit>
wolffd@0 231 <edit name="family" mode="append" binding="same">
wolffd@0 232 <string>Persian_square</string>
wolffd@0 233 </edit>
wolffd@0 234 </match>
wolffd@0 235 <match>
wolffd@0 236 <test name="family">
wolffd@0 237 <string>Farnaz</string>
wolffd@0 238 </test>
wolffd@0 239 <edit name="family" mode="append" binding="same">
wolffd@0 240 <string>Elham</string>
wolffd@0 241 </edit>
wolffd@0 242 <edit name="family" mode="append" binding="same">
wolffd@0 243 <string>Persian_square</string>
wolffd@0 244 </edit>
wolffd@0 245 </match>
wolffd@0 246 <match>
wolffd@0 247 <test name="family">
wolffd@0 248 <string>Sina</string>
wolffd@0 249 </test>
wolffd@0 250 <edit name="family" mode="append" binding="same">
wolffd@0 251 <string>Persian_square</string>
wolffd@0 252 </edit>
wolffd@0 253 </match>
wolffd@0 254
wolffd@0 255 <!-- Font ordering per class -->
wolffd@0 256
wolffd@0 257 <!-- Persian_title class -->
wolffd@0 258 <match>
wolffd@0 259 <test name="family">
wolffd@0 260 <string>Persian_title</string>
wolffd@0 261 </test>
wolffd@0 262 <edit name="family" mode="append" binding="same">
wolffd@0 263 <string>Persian_serif</string>
wolffd@0 264 </edit>
wolffd@0 265 <edit name="family" mode="append" binding="same">
wolffd@0 266 <string>Jadid</string>
wolffd@0 267 </edit>
wolffd@0 268 <edit name="family" mode="append" binding="same">
wolffd@0 269 <string>Titr</string>
wolffd@0 270 </edit>
wolffd@0 271 </match>
wolffd@0 272
wolffd@0 273 <!-- Persian_fantasy class -->
wolffd@0 274 <match>
wolffd@0 275 <test name="family">
wolffd@0 276 <string>Persian_fantasy</string>
wolffd@0 277 </test>
wolffd@0 278 <edit name="family" mode="append" binding="same">
wolffd@0 279 <string>Persian_square</string>
wolffd@0 280 </edit>
wolffd@0 281 <edit name="family" mode="append" binding="same">
wolffd@0 282 <string>Tabassom</string>
wolffd@0 283 </edit>
wolffd@0 284 <edit name="family" mode="append" binding="same">
wolffd@0 285 <string>Fantezi</string>
wolffd@0 286 </edit>
wolffd@0 287 <edit name="family" mode="append" binding="same">
wolffd@0 288 <string>Kamran</string>
wolffd@0 289 </edit>
wolffd@0 290 <edit name="family" mode="append" binding="same">
wolffd@0 291 <string>Homa</string>
wolffd@0 292 </edit>
wolffd@0 293 </match>
wolffd@0 294
wolffd@0 295 <!-- Persian_square class -->
wolffd@0 296 <match>
wolffd@0 297 <test name="family">
wolffd@0 298 <string>Persian_square</string>
wolffd@0 299 </test>
wolffd@0 300 <edit name="family" mode="append" binding="same">
wolffd@0 301 <string>Persian_serif</string>
wolffd@0 302 </edit>
wolffd@0 303 <edit name="family" mode="append" binding="same">
wolffd@0 304 <string>Sina</string>
wolffd@0 305 </edit>
wolffd@0 306 <edit name="family" mode="append" binding="same">
wolffd@0 307 <string>Nasim</string>
wolffd@0 308 </edit>
wolffd@0 309 <edit name="family" mode="append" binding="same">
wolffd@0 310 <string>Farnaz</string>
wolffd@0 311 </edit>
wolffd@0 312 <edit name="family" mode="append" binding="same">
wolffd@0 313 <string>Elham</string>
wolffd@0 314 </edit>
wolffd@0 315 <edit name="family" mode="append" binding="same">
wolffd@0 316 <string>Arshia</string>
wolffd@0 317 </edit>
wolffd@0 318 </match>
wolffd@0 319
wolffd@0 320 <!-- Register the fonts that we actually do have -->
wolffd@0 321
wolffd@0 322 <match target="font">
wolffd@0 323 <test name="family">
wolffd@0 324 <string>Elham</string>
wolffd@0 325 </test>
wolffd@0 326 <edit name="foundry">
wolffd@0 327 <string>farsiweb</string>
wolffd@0 328 </edit>
wolffd@0 329 </match>
wolffd@0 330
wolffd@0 331 <match target="font">
wolffd@0 332 <test name="family">
wolffd@0 333 <string>Homa</string>
wolffd@0 334 </test>
wolffd@0 335 <edit name="foundry">
wolffd@0 336 <string>farsiweb</string>
wolffd@0 337 </edit>
wolffd@0 338 </match>
wolffd@0 339
wolffd@0 340 <match target="font">
wolffd@0 341 <test name="family">
wolffd@0 342 <string>Koodak</string>
wolffd@0 343 </test>
wolffd@0 344 <edit name="foundry">
wolffd@0 345 <string>farsiweb</string>
wolffd@0 346 </edit>
wolffd@0 347 </match>
wolffd@0 348
wolffd@0 349 <match target="font">
wolffd@0 350 <test name="family">
wolffd@0 351 <string>Nazli</string>
wolffd@0 352 </test>
wolffd@0 353 <edit name="foundry">
wolffd@0 354 <string>farsiweb</string>
wolffd@0 355 </edit>
wolffd@0 356 </match>
wolffd@0 357
wolffd@0 358 <match target="font">
wolffd@0 359 <test name="family">
wolffd@0 360 <string>Roya</string>
wolffd@0 361 </test>
wolffd@0 362 <edit name="foundry">
wolffd@0 363 <string>farsiweb</string>
wolffd@0 364 </edit>
wolffd@0 365 </match>
wolffd@0 366
wolffd@0 367 <match target="font">
wolffd@0 368 <test name="family">
wolffd@0 369 <string>Terafik</string>
wolffd@0 370 </test>
wolffd@0 371 <edit name="foundry">
wolffd@0 372 <string>farsiweb</string>
wolffd@0 373 </edit>
wolffd@0 374 </match>
wolffd@0 375
wolffd@0 376 <match target="font">
wolffd@0 377 <test name="family">
wolffd@0 378 <string>Titr</string>
wolffd@0 379 </test>
wolffd@0 380 <edit name="foundry">
wolffd@0 381 <string>farsiweb</string>
wolffd@0 382 </edit>
wolffd@0 383 </match>
wolffd@0 384
wolffd@0 385
wolffd@0 386 <!-- Our fonts should oblique to the other side (TURNED-OFF) -->
wolffd@0 387
wolffd@0 388 <match target="font">
wolffd@0 389 <test name="foundry">
wolffd@0 390 <!--string>farsiweb</string-->
wolffd@0 391 <string>TURNED-OFF</string>
wolffd@0 392 </test>
wolffd@0 393 <test name="foundry">
wolffd@0 394 <string>farsiweb</string>
wolffd@0 395 </test>
wolffd@0 396 <!-- check to see if the font is roman -->
wolffd@0 397 <test name="slant">
wolffd@0 398 <const>roman</const>
wolffd@0 399 </test>
wolffd@0 400 <!-- check to see if the pattern requested non-roman -->
wolffd@0 401 <test target="pattern" name="slant" compare="not_eq">
wolffd@0 402 <const>roman</const>
wolffd@0 403 </test>
wolffd@0 404 <!-- multiply the matrix to slant the font -->
wolffd@0 405 <edit name="matrix" mode="assign">
wolffd@0 406 <times>
wolffd@0 407 <name>matrix</name>
wolffd@0 408 <matrix><double>1</double><double>-0.2</double>
wolffd@0 409 <double>0</double><double>1</double>
wolffd@0 410 </matrix>
wolffd@0 411 </times>
wolffd@0 412 </edit>
wolffd@0 413 <!-- pretend the font is oblique now -->
wolffd@0 414 <edit name="slant" mode="assign">
wolffd@0 415 <const>oblique</const>
wolffd@0 416 </edit>
wolffd@0 417 </match>
wolffd@0 418
wolffd@0 419
wolffd@0 420 <!--
wolffd@0 421 We can't hint our fonts well, so turn off hinting.
wolffd@0 422 Moreover, the bitmaps we have designed (well, they
wolffd@0 423 have designed), suck, so disable them too.
wolffd@0 424 -->
wolffd@0 425
wolffd@0 426 <match target="font">
wolffd@0 427 <test name="foundry">
wolffd@0 428 <string>farsiweb</string>
wolffd@0 429 </test>
wolffd@0 430 <edit name="autohint">
wolffd@0 431 <bool>false</bool>
wolffd@0 432 </edit>
wolffd@0 433 <edit name="hinting">
wolffd@0 434 <bool>false</bool>
wolffd@0 435 </edit>
wolffd@0 436 <edit name="embeddedbitmap">
wolffd@0 437 <bool>false</bool>
wolffd@0 438 </edit>
wolffd@0 439 </match>
wolffd@0 440
wolffd@0 441
wolffd@0 442 <!-- Alias our fonts to common families -->
wolffd@0 443
wolffd@0 444 <!-- Persian serif fonts -->
wolffd@0 445 <alias>
wolffd@0 446 <family>serif</family>
wolffd@0 447 <accept>
wolffd@0 448 <family>Nazli</family>
wolffd@0 449 <family>Lotoos</family>
wolffd@0 450 <family>Mitra</family>
wolffd@0 451 <family>Ferdosi</family>
wolffd@0 452 <family>Badr</family>
wolffd@0 453 <family>Zar</family>
wolffd@0 454 </accept>
wolffd@0 455 </alias>
wolffd@0 456
wolffd@0 457 <!-- Persian sans-serif fonts -->
wolffd@0 458 <alias>
wolffd@0 459 <family>sans-serif</family>
wolffd@0 460 <accept>
wolffd@0 461 <family>Roya</family>
wolffd@0 462 <family>Koodak</family>
wolffd@0 463 <family>Terafik</family>
wolffd@0 464 </accept>
wolffd@0 465 </alias>
wolffd@0 466
wolffd@0 467 <!-- Persian monospace fonts -->
wolffd@0 468 <alias>
wolffd@0 469 <family>monospace</family>
wolffd@0 470 <accept>
wolffd@0 471 <!-- Not really monospace -->
wolffd@0 472 <family>Terafik</family>
wolffd@0 473 </accept>
wolffd@0 474 </alias>
wolffd@0 475
wolffd@0 476
wolffd@0 477 <!-- Use Titr in titles -->
wolffd@0 478
wolffd@0 479 <!-- Both serif... -->
wolffd@0 480 <match>
wolffd@0 481 <test name="family">
wolffd@0 482 <string>serif</string>
wolffd@0 483 </test>
wolffd@0 484 <test name="weight" compare="more_eq">
wolffd@0 485 <int>200</int>
wolffd@0 486 </test>
wolffd@0 487 <test name="size" compare="more_eq">
wolffd@0 488 <double>24</double>
wolffd@0 489 </test>
wolffd@0 490 <edit name="family" mode="prepend">
wolffd@0 491 <string>Titr</string>
wolffd@0 492 </edit>
wolffd@0 493 </match>
wolffd@0 494
wolffd@0 495 <!-- and sans-serif. -->
wolffd@0 496 <match>
wolffd@0 497 <test name="family">
wolffd@0 498 <string>sans-serif</string>
wolffd@0 499 </test>
wolffd@0 500 <test name="weight" compare="more_eq">
wolffd@0 501 <int>200</int>
wolffd@0 502 </test>
wolffd@0 503 <test name="size" compare="more_eq">
wolffd@0 504 <double>24</double>
wolffd@0 505 </test>
wolffd@0 506 <edit name="family" mode="prepend">
wolffd@0 507 <string>Titr</string>
wolffd@0 508 </edit>
wolffd@0 509 </match>
wolffd@0 510
wolffd@0 511 <!-- and more. -->
wolffd@0 512 <match>
wolffd@0 513 <test name="family">
wolffd@0 514 <string>Persian_sansserif_default</string>
wolffd@0 515 </test>
wolffd@0 516 <test name="weight" compare="more_eq">
wolffd@0 517 <int>200</int>
wolffd@0 518 </test>
wolffd@0 519 <test name="size" compare="more_eq">
wolffd@0 520 <double>24</double>
wolffd@0 521 </test>
wolffd@0 522 <edit name="family" mode="prepend" binding="same">
wolffd@0 523 <string>Titr</string>
wolffd@0 524 </edit>
wolffd@0 525 </match>
wolffd@0 526
wolffd@0 527
wolffd@0 528 <!-- Default substituted for deprecated sans-serif fonts -->
wolffd@0 529
wolffd@0 530 <match>
wolffd@0 531 <test name="family">
wolffd@0 532 <string>Persian_sansserif_default</string>
wolffd@0 533 </test>
wolffd@0 534 <edit name="family" mode="assign" binding="same">
wolffd@0 535 <string>Roya</string>
wolffd@0 536 </edit>
wolffd@0 537 </match>
wolffd@0 538
wolffd@0 539 </fontconfig>