home *** CD-ROM | disk | FTP | other *** search
/ chilidog.highland.cc.ks.us / chilidog.highland.cc.ks.us.zip / chilidog.highland.cc.ks.us / backup / bradford.20110725.etc.tar.gz / bradford.20110725.etc.tar / etc / fonts / suse-pre-user.conf < prev   
Extensible Markup Language  |  2006-06-09  |  10KB  |  298 lines

  1. <?xml version="1.0"?>
  2. <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  3. <fontconfig>
  4.  
  5. <!--
  6.   The dual-width Asian fonts (spacing=dual) are not rendered correctly,
  7.   apparently Xft forces all widths to match. Trying to disable the
  8.   width forcing code by setting globaladvance=false alone doesn't  help.
  9.   As a brute force workaround, also set spacing=proportional, i.e. handle
  10.   them as proportional fonts:
  11. -->
  12.  
  13.         <match target="font">
  14.                 <test name="lang" compare="contains">
  15.                         <string>ja</string>
  16.                         <string>zh</string>
  17.                         <string>ko</string>
  18.                 </test>
  19.                 <test name="spacing" compare="eq">
  20.                         <const>dual</const>
  21.                 </test>
  22.                 <edit name="spacing">
  23.                         <const>proportional</const>
  24.                 </edit>
  25.                 <edit name="globaladvance" binding="strong">
  26.                         <bool>false</bool>
  27.                 </edit>
  28.         </match>
  29.  
  30. <!--
  31.   There is a similar problem with dual width bitmap fonts. They don't
  32.   have spacing=dual, therefore they are not handled by the above rule
  33.   and still display as charcell fonts. For example "Efont Biwidth"
  34.   has spacing=mono and "Misc Fixed Wide" has spacing=charcell.
  35.   Force handling of these fonts as proportional fonts as well:
  36. -->
  37.  
  38.         <match target="font">
  39.                 <test name="lang" compare="contains">
  40.                         <string>ja</string>
  41.                         <string>zh</string>
  42.                         <string>ko</string>
  43.                 </test>
  44.                 <test name="outline" compare="eq">
  45.                         <bool>false</bool>
  46.                 </test>
  47.                 <test name="spacing" compare="eq">
  48.                         <const>mono</const>
  49.                         <const>charcell</const>
  50.                 </test>
  51.                 <edit name="spacing">
  52.                         <const>proportional</const>
  53.                 </edit>
  54.                 <edit name="globaladvance" binding="strong">
  55.                         <bool>false</bool>
  56.                 </edit>
  57.         </match>
  58.  
  59. <!-- ************************************************************ -->
  60. <!-- Font replacements and fallbacks                              -->
  61. <!-- ************************************************************ -->
  62.  
  63. <!--
  64.   The SUSE fonts have been dropped from SuSE Linux >= 10.1 in
  65.   favour of the DejaVu fonts. All extensions the SUSE fonts had
  66.   over the original Bitstream fonts have already been merged into the
  67.   DejaVu fonts and the DejaVu fonts contain many glyphs not in
  68.   the SUSE fonts. Therefore there is no reason to use the SUSE
  69.   fonts anymore.
  70.  
  71.   As old config files or documents users might still refer to the SUSE
  72.   fonts, we add rules here to use the DejaVu fonts as a replacement
  73.   if the SUSE fonts are missing (The SUSE fonts are still used
  74.   if they are still available for best compatibility).
  75.  
  76.   The style=Roman used in the SUSE and the original "Bitstream Vera"
  77.   fonts has been renamed into style=Book in the DejaVu fonts,
  78.   therefore some extra rules are needed.
  79.  
  80. -->
  81.  
  82.         <match target="pattern">
  83.                 <test name="family">
  84.                         <string>SUSE Sans</string>
  85.                 </test>
  86.                 <edit name="family" mode="append" binding="same">
  87.                         <string>DejaVu Sans</string>
  88.                 </edit>
  89.         </match>
  90.  
  91.         <match target="pattern">
  92.                 <test name="family">
  93.                         <string>SUSE Sans</string>
  94.                 </test>
  95.                 <test name="style">
  96.                         <string>Roman</string>
  97.                 </test>
  98.                 <edit name="family" mode="append" binding="same">
  99.                         <string>DejaVu Sans</string>
  100.                 </edit>
  101.                 <edit name="style" mode="append" binding="same">
  102.                         <string>Book</string>
  103.                 </edit>
  104.         </match>
  105.  
  106.         <match target="pattern">
  107.                 <test name="family">
  108.                         <string>SUSE Sans Mono</string>
  109.                 </test>
  110.                 <edit name="family" mode="append" binding="same">
  111.                         <string>DejaVu Sans Mono</string>
  112.                 </edit>
  113.         </match>
  114.  
  115.         <match target="pattern">
  116.                 <test name="family">
  117.                         <string>SUSE Sans Mono</string>
  118.                 </test>
  119.                 <test name="style">
  120.                         <string>Roman</string>
  121.                 </test>
  122.                 <edit name="family" mode="append" binding="same">
  123.                         <string>DejaVu Sans Mono</string>
  124.                 </edit>
  125.                 <edit name="style" mode="append" binding="same">
  126.                         <string>Book</string>
  127.                 </edit>
  128.         </match>
  129.  
  130.         <match target="pattern">
  131.                 <test name="family">
  132.                         <string>SUSE Serif</string>
  133.                 </test>
  134.                 <edit name="family" mode="append" binding="same">
  135.                         <string>DejaVu Serif</string>
  136.                 </edit>
  137.         </match>
  138.  
  139.         <match target="pattern">
  140.                 <test name="family">
  141.                         <string>SUSE Serif</string>
  142.                 </test>
  143.                 <test name="style">
  144.                         <string>Roman</string>
  145.                 </test>
  146.                 <edit name="family" mode="append" binding="same">
  147.                         <string>DejaVu Serif</string>
  148.                 </edit>
  149.                 <edit name="style" mode="append" binding="same">
  150.                         <string>Book</string>
  151.                 </edit>
  152.         </match>
  153.  
  154. <!--
  155.   If the original Adobe "Symbol" font is not available, use
  156.   the URW font "Standard Symbols L" or the font "OpenSymbol" coming
  157.   with OpenOffice as a replacement. The last font appended in this
  158.   rule will win.
  159.   (needed for Mozilla/Firefox to display symbols correctly).
  160.   
  161. -->
  162.  
  163.         <match target="pattern">
  164.                 <test name="family">
  165.                         <string>symbol</string>
  166.                 </test>
  167.                 <edit name="family" mode="append" binding="strong">
  168.                         <string>OpenSymbol</string>
  169.                 </edit>
  170.                 <edit name="family" mode="append" binding="strong">
  171.                         <string>Standard Symbols L</string>
  172.                 </edit>
  173.         </match>
  174.  
  175. <!--
  176.   Use  "Misc Console" (or "Misc Console Wide") instead of "console"
  177.   (needed to make the menu entry labelled "Linux" in the font menu of
  178.   KDE's konsole choose the same font as it used to).
  179. -->
  180.         <match target="pattern">
  181.                 <test name="family">
  182.                         <string>console</string>
  183.                 </test>
  184.                 <edit name="family" mode="prepend" binding="strong">
  185.                         <string>Misc Console</string>
  186.                 </edit>
  187.                 <edit name="family" mode="prepend" binding="strong">
  188.                         <string>Misc Console Wide</string>
  189.                 </edit>
  190.         </match>
  191.  
  192. <!-- ************************************************************ -->
  193. <!-- Blacklisting fonts which cannot work                         -->
  194. <!-- ************************************************************ -->
  195.  
  196. <!--
  197.     the Hershey-Fonts from ghostscript-fonts-other.rpm are so called
  198.     "Stroke" fonts which are currently not supported by Freetype
  199. -->
  200.  
  201.     <selectfont>
  202.             <rejectfont>
  203.                 <pattern>
  204.                     <patelt name="family">
  205.                                         <string>Hershey-Gothic-English</string>
  206.                                 </patelt>
  207.             </pattern>
  208.             <pattern>
  209.                     <patelt name="family">
  210.                                         <string>Hershey-Plain-Duplex</string>
  211.                                 </patelt>
  212.             </pattern>
  213.             <pattern>
  214.                     <patelt name="family">
  215.                                         <string>Hershey-Plain-Duplex-Italic</string>
  216.                                 </patelt>
  217.             </pattern>
  218.             <pattern>
  219.                     <patelt name="family">
  220.                                         <string>Hershey-Plain-Triplex</string>
  221.                                 </patelt>
  222.             </pattern>
  223.             <pattern>
  224.                     <patelt name="family">
  225.                                         <string>Hershey-Plain-Triplex-Italic</string>
  226.                                 </patelt>
  227.             </pattern>
  228.             <pattern>
  229.                     <patelt name="family">
  230.                                         <string>Hershey-Script-Simplex</string>
  231.                                 </patelt>
  232.             </pattern>
  233.             <pattern>
  234.                     <patelt name="family">
  235.                                         <string>Hershey-Script-Complex</string>
  236.                                 </patelt>
  237.             </pattern>
  238.             <pattern>
  239.                     <patelt name="family">
  240.                                         <string>Hershey-Gothic-German</string>
  241.                                 </patelt>
  242.             </pattern>
  243.             <pattern>
  244.                     <patelt name="family">
  245.                                         <string>Hershey-Gothic-Italian</string>
  246.                                 </patelt>
  247.             </pattern>
  248.         </rejectfont>
  249.     </selectfont>
  250.  
  251. <!--
  252.     CID keyed fonts don't work (yet) with freetype2
  253. -->
  254.  
  255.         <selectfont>
  256.          <rejectfont>
  257.            <pattern>
  258.             <patelt name="fontformat">
  259.               <string>CID Type 1</string>
  260.             </patelt>
  261.            </pattern>
  262.          </rejectfont>
  263.         </selectfont>
  264.  
  265. <!--
  266.     Windows fonts with the .fon extension don't work with Xft2
  267.     (such fonts are in the "wine" package).
  268. -->
  269.  
  270.     <selectfont>
  271.      <rejectfont>
  272.        <glob>*.fon</glob>
  273.      </rejectfont>
  274.     </selectfont>
  275.  
  276. <!-- BDF fonts don't work with Xft2 -->
  277.  
  278.     <selectfont>
  279.      <rejectfont>
  280.        <glob>*.bdf</glob>
  281.      </rejectfont>
  282.     </selectfont>
  283.  
  284. <!-- ************************************************************ -->
  285. <!-- Hinting and antialiasing                                     -->
  286. <!-- ************************************************************ -->
  287.  
  288.     <include ignore_missing="yes">suse-hinting.conf</include>
  289.  
  290. <!-- ************************************************************ -->
  291. <!-- Bitmap related stuff                                         -->
  292. <!-- ************************************************************ -->
  293.  
  294.     <include ignore_missing="yes">suse-bitmaps.conf</include>
  295.  
  296. </fontconfig>
  297.  
  298.