]> git.wh0rd.org - fontconfig.git/blobdiff - conf.d/65-fonts-persian.conf
Replace spaces with tabs in conf files
[fontconfig.git] / conf.d / 65-fonts-persian.conf
index c897554538dc7be77c77410aa55cde3fba14933d..0033675a493fb745644b09e4a90ca3f37c806d9b 100644 (file)
@@ -1,6 +1,5 @@
 <?xml version="1.0"?>
 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
-<!-- /etc/fonts/conf.d/10-fonts-persian.conf -->
 <!--
   fonts-persian.conf
   To configure Persian fonts from The FarsiWeb Project.
@@ -19,7 +18,7 @@
 
   SHARIF FARSIWEB, INC. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
   INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
-  EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+  EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
   DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
   TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
     2005-04-03  Behdad Esfahbod:  Initial revision.
     2005-10-09  Behdad Esfahbod:  Turned off back-slant and Tahoma sections.
     2005-11-30  Behdad Esfahbod:  Set Titr susbtitution size to 24 points.
-
-  Todo:
-    Add generic font "fantasy".  Add some fonts into that category.
-    Maybe add a "cursive" generic font.
+    2008       Behdad Esfahbod:  Cleanup.  Add fantasy and cursive.
   -->
 <fontconfig>
 
 <!-- Deprecated fonts are discouraged -->
 
        <!-- Nesf[2] is officially deprecated and has problematic tables -->
-        <alias binding="same">
-          <family>Nesf</family>
-          <accept><family>Nesf2</family></accept>
-        </alias>
-        <alias binding="same">
-          <family>Nesf2</family>
-          <accept><family>Persian_sansserif_default</family></accept>
-        </alias>
+       <alias binding="same">
+         <family>Nesf</family>
+         <accept><family>Nesf2</family></accept>
+       </alias>
+       <alias binding="same">
+         <family>Nesf2</family>
+         <accept><family>Persian_sansserif_default</family></accept>
+       </alias>
 
 <!-- Name changes and spelling variant aliases -->
 
-        <alias binding="same">
-          <family>Nazanin</family>
-          <accept><family>Nazli</family></accept>
-        </alias>
-        <alias binding="same">
-          <family>Lotus</family>
-          <accept><family>Lotoos</family></accept>
-        </alias>
-        <alias binding="same">
-          <family>Yaqut</family>
-          <accept><family>Yaghoot</family></accept>
-        </alias>
-        <alias binding="same">
-          <family>Yaghut</family>
-          <accept><family>Yaghoot</family></accept>
-        </alias>
-        <alias binding="same">
-          <family>Traffic</family>
-          <accept><family>Terafik</family></accept>
-        </alias>
-        <alias binding="same">
-          <family>Ferdowsi</family>
-          <accept><family>Ferdosi</family></accept>
-        </alias>
-        <alias binding="same">
-          <family>Fantezy</family>
-          <accept><family>Fantezi</family></accept>
-        </alias>
+       <alias binding="same">
+         <family>Nazanin</family>
+         <accept><family>Nazli</family></accept>
+       </alias>
+       <alias binding="same">
+         <family>Lotus</family>
+         <accept><family>Lotoos</family></accept>
+       </alias>
+       <alias binding="same">
+         <family>Yaqut</family>
+         <accept><family>Yaghoot</family></accept>
+       </alias>
+       <alias binding="same">
+         <family>Yaghut</family>
+         <accept><family>Yaghoot</family></accept>
+       </alias>
+       <alias binding="same">
+         <family>Traffic</family>
+         <accept><family>Terafik</family></accept>
+       </alias>
+       <alias binding="same">
+         <family>Ferdowsi</family>
+         <accept><family>Ferdosi</family></accept>
+       </alias>
+       <alias binding="same">
+         <family>Fantezy</family>
+         <accept><family>Fantezi</family></accept>
+       </alias>
 
 
 <!-- Classify fonts. -->
 
        <!-- Persian_title class -->
-        <alias binding="same">
-          <family>Jadid</family>
-          <accept><family>Persian_title</family></accept>
-        </alias>
-        <alias binding="same">
-          <family>Titr</family>
-          <accept><family>Persian_title</family></accept>
-        </alias>
+       <alias binding="same">
+         <family>Jadid</family>
+         <accept><family>Persian_title</family></accept>
+       </alias>
+       <alias binding="same">
+         <family>Titr</family>
+         <accept><family>Persian_title</family></accept>
+       </alias>
 
        <!-- Persian_fantasy class -->
-        <alias binding="same">
-          <family>Kamran</family>
-          <accept>
+       <alias binding="same">
+         <family>Kamran</family>
+         <accept>
          <family>Persian_fantasy</family>
          <family>Homa</family>
          </accept>
-        </alias>
-        <alias binding="same">
-          <family>Homa</family>
-          <accept>
+       </alias>
+       <alias binding="same">
+         <family>Homa</family>
+         <accept>
          <family>Persian_fantasy</family>
          <family>Kamran</family>
          </accept>
-        </alias>
-        <alias binding="same">
-          <family>Fantezi</family>
-          <accept><family>Persian_fantasy</family></accept>
-        </alias>
-        <alias binding="same">
-          <family>Tabassom</family>
-          <accept><family>Persian_fantasy</family></accept>
-        </alias>
+       </alias>
+       <alias binding="same">
+         <family>Fantezi</family>
+         <accept><family>Persian_fantasy</family></accept>
+       </alias>
+       <alias binding="same">
+         <family>Tabassom</family>
+         <accept><family>Persian_fantasy</family></accept>
+       </alias>
 
        <!-- Persian_square class -->
-        <alias binding="same">
-          <family>Arshia</family>
-          <accept><family>Persian_square</family></accept>
-        </alias>
-        <alias binding="same">
-          <family>Nasim</family>
-          <accept><family>Persian_square</family></accept>
-        </alias>
-        <alias binding="same">
-          <family>Elham</family>
-          <accept>
+       <alias binding="same">
+         <family>Arshia</family>
+         <accept><family>Persian_square</family></accept>
+       </alias>
+       <alias binding="same">
+         <family>Nasim</family>
+         <accept><family>Persian_square</family></accept>
+       </alias>
+       <alias binding="same">
+         <family>Elham</family>
+         <accept>
          <family>Persian_square</family>
          <family>Farnaz</family>
          </accept>
-        </alias>
-        <alias binding="same">
+       </alias>
+       <alias binding="same">
          <family>Farnaz</family>
-          <accept>
+         <accept>
          <family>Persian_square</family>
-          <family>Elham</family>
+         <family>Elham</family>
          </accept>
-        </alias>
-        <alias binding="same">
-          <family>Sina</family>
-          <accept><family>Persian_square</family></accept>
-        </alias>
+       </alias>
+       <alias binding="same">
+         <family>Sina</family>
+         <accept><family>Persian_square</family></accept>
+       </alias>
 
 <!-- Font ordering per class -->
 
        <!-- Persian_title class -->
-        <alias binding="same">
+       <alias binding="same">
          <family>Persian_title</family>
-          <accept>
+         <accept>
          <family>Titr</family>
          <family>Jadid</family>
-          <family>Persian_serif</family>
+         <family>Persian_serif</family>
          </accept>
-        </alias>
+       </alias>
 
        <!-- Persian_fantasy class -->
-        <alias binding="same">
+       <alias binding="same">
          <family>Persian_fantasy</family>
-          <accept>
+         <accept>
          <family>Homa</family>
          <family>Kamran</family>
          <family>Fantezi</family>
          <family>Tabassom</family>
-          <family>Persian_square</family>
+         <family>Persian_square</family>
          </accept>
-        </alias>
+       </alias>
 
        <!-- Persian_square class -->
-        <alias binding="same">
+       <alias binding="same">
          <family>Persian_square</family>
-          <accept>
+         <accept>
          <family>Arshia</family>
          <family>Elham</family>
          <family>Farnaz</family>
          <family>Nasim</family>
          <family>Sina</family>
-          <family>Persian_serif</family>
+         <family>Persian_serif</family>
          </accept>
-        </alias>
+       </alias>
 
 <!-- Register the fonts that we actually do have -->
 
-       <match target="font">
+       <match target="scan">
                <test name="family">
                        <string>Elham</string>
                </test>
                </edit>
        </match>
 
-       <match target="font">
+       <match target="scan">
                <test name="family">
                        <string>Homa</string>
                </test>
                </edit>
        </match>
 
-       <match target="font">
+       <match target="scan">
                <test name="family">
                        <string>Koodak</string>
                </test>
                </edit>
        </match>
 
-       <match target="font">
+       <match target="scan">
                <test name="family">
                        <string>Nazli</string>
                </test>
                </edit>
        </match>
 
-       <match target="font">
+       <match target="scan">
                <test name="family">
                        <string>Roya</string>
                </test>
                </edit>
        </match>
 
-       <match target="font">
+       <match target="scan">
                <test name="family">
                        <string>Terafik</string>
                </test>
                </edit>
        </match>
 
-       <match target="font">
+       <match target="scan">
                <test name="family">
                        <string>Titr</string>
                </test>
                </accept>
        </alias>
 
+       <!-- Persian fantasy fonts -->
+       <alias>
+               <family>fantasy</family>
+               <accept>
+                       <family>Homa</family>
+                       <family>Kamran</family>
+                       <family>Fantezi</family>
+                       <family>Tabassom</family>
+               </accept>
+       </alias>
+
+       <!-- Persian (and Urdu) Nastaliq/cursive fonts -->
+       <alias>
+               <family>cursive</family>
+               <accept>
+                       <family>IranNastaliq</family>
+                       <family>Nafees Nastaleeq</family>
+               </accept>
+       </alias>
 
 <!-- Use Titr in titles -->