Advertisement
Guest User

Untitled

a guest
Nov 10th, 2009
509
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.57 KB | None | 0 0
  1. <?xml version='1.0'?>
  2. <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
  3.  
  4. <!-- $ ls /etc/fonts/conf.d -->
  5. <!-- $ sudo dpkg-reconfigure fontconfig-config -->
  6.  
  7. <fontconfig>
  8.   <dir>/media/sdb1/Linux/Fonts</dir>
  9.   <dir>/media/sdb1/Fonts</dir>
  10.  
  11.   <!--  
  12.    Use lcddefault as default for LCD filter lcdfilterdefault
  13.    Choices:  lcdnone, lcddefault, lcdlight, lcdlegacy
  14.      -->
  15.   <match target="font">
  16.     <edit mode="assign" name="lcdfilter">
  17.       <const>lcddefault</const>
  18.     </edit>
  19.   </match>
  20.  
  21.   <!-- Reject bitmap fonts in favour of Truetype, Postscript, etc. -->
  22.   <selectfont>
  23.     <rejectfont>
  24.       <pattern>
  25.        <patelt name="scalable">
  26.          <bool>false</bool>
  27.        </patelt>
  28.       </pattern>
  29.     </rejectfont>
  30.   </selectfont>
  31.  
  32.     <!-- hintnone, hintslight, hintmedium, hintfull -->
  33.     <!-- Keep autohint off -->
  34.     <!-- Blurry fonts:  Try rgb, bgr, vrgb, vbgr for "rgba" -->
  35.     <!-- Blurry:  http://forums.gentoo.org/viewtopic-p-5060979.html#5060979 -->
  36.   <match target="font" >
  37.     <edit mode="assign" name="rgba" >
  38.       <const>rgb</const>
  39.     </edit>
  40.     <edit mode="assign" name="autohint" >
  41.       <!-- was false -->
  42.       <bool>false</bool>
  43.     </edit>
  44.     <edit mode="assign" name="antialias" >
  45.       <bool>true</bool>
  46.     </edit>
  47.     <edit mode="assign" name="hinting" >
  48.        <!-- was false --> <!-- this controls the tahoma issue -->
  49.       <bool>true</bool>
  50.     </edit>
  51.     <edit mode="assign" name="hintstyle" >
  52.       <const>hintfull</const>
  53.     </edit>
  54.   </match>
  55.  
  56.  
  57.   <!-- From http://www.fedoraforum.org/forum/showthread.php?t=186789&page=7 -->
  58.   <match target="font" >
  59.     <test compare="eq" name="family" >
  60.       <string>Consolas</string>
  61.       <string>Calibri</string>
  62.       <string>Cambria</string>
  63.       <string>Constantia</string>
  64.       <string>Corbel</string>
  65.       <string>Constantia</string>
  66.       <string>Candara</string>
  67.       <string>Inconsolata</string>
  68.       <string>Monaco</string>
  69.       <string>Trebuchet MS</string>
  70.       <string>Times New Roman</string>
  71.       <string>Georgia</string>
  72.       <string>Segoe UI</string>
  73.       <string>Arial</string>
  74.       <string>Palatino</string>
  75.       <string>Palatino LT Std</string>
  76.       <string>Palatino Linotype</string>
  77.       <string>Courier</string>
  78.       <string>Courier New</string>
  79.       <string>Tahoma</string>
  80.       <string>Liberation Mono</string>
  81.       <string>Liberation Sans</string>
  82.       <string>Verdana</string>
  83.       <!-- <string>DejaVu Sans</string> -->
  84.       <!-- <string>Envy Code R</string> -->
  85.     </test>
  86.     <edit mode="assign" name="rgba" >
  87.       <const>rgb</const>
  88.     </edit>
  89.     <edit mode="assign" name="autohint" >
  90.       <bool>false</bool>
  91.     </edit>
  92.     <edit mode="assign" name="antialias" >
  93.       <bool>true</bool>
  94.     </edit>
  95.     <edit mode="assign" name="hinting" >
  96.       <bool>false</bool> <!-- was false -->
  97.     </edit>
  98.     <edit mode="assign" name="hintstyle" >
  99.       <const>hintmedium</const>
  100.     </edit>
  101.   </match>
  102.  
  103.   <match target="font" >
  104.     <test compare="eq" name="family" >
  105.       <string>Verdana</string>
  106.     </test>
  107.     <edit mode="assign" name="rgba" >
  108.       <const>rgb</const>
  109.     </edit>
  110.     <edit mode="assign" name="autohint" >
  111.       <bool>false</bool>
  112.     </edit>
  113.     <edit mode="assign" name="antialias" >
  114.       <bool>true</bool>
  115.     </edit>
  116.     <edit mode="assign" name="hinting" >
  117.       <bool>true</bool>
  118.     </edit>
  119.     <edit mode="assign" name="hintstyle" >
  120.       <const>hintfull</const>
  121.     </edit>
  122.     <test name="size" compare="less_eq" >
  123.       <double>10</double>
  124.     </test>
  125.   </match>
  126.  
  127.   <!-- Replace Courier with a better-looking font -->
  128.   <match target="pattern" name="family" >
  129.     <test name="family" qual="any" >
  130.       <string>Courier</string>
  131.       <string>Courier New</string>
  132.     </test>
  133.     <edit mode="assign" name="family" >
  134.       <!-- Other choices - Andale Mono, Courier New, Luxi Mono, Bitstream Vera Sans Mono -->
  135.       <string>DejaVu Sans Mono</string>
  136.     </edit>
  137.   </match>
  138.  
  139.   <!-- Replace Courier New with a better-looking font -->
  140.   <match name="family" target="pattern">
  141.     <test name="family" qual="any">
  142.       <string>Courier</string>
  143.       <string>Courier New</string>
  144.     </test>
  145.     <edit name="family" mode="assign">
  146.       <!-- Other choices - Andale Mono, Courier New, Luxi Mono, Bitstream Vera Sans Mono -->
  147.       <string>Monospace</string>
  148.     </edit>
  149.   </match>
  150.  
  151.   <match target="pattern" name="family" >
  152.     <test name="family" qual="any" >
  153.       <string>fixed</string>
  154.     </test>
  155.     <edit mode="assign" name="family" >
  156.       <string>monospace</string>
  157.     </edit>
  158.   </match>
  159.  
  160.   <!-- <match target="pattern" name="family" >
  161.    <test name="family" qual="any" >
  162.      <string>Helvetica LT Std</string>
  163.      <string>Helvetica Neue LT Std</string>
  164.      <string>Helvetica</string>
  165.    </test>
  166.    <edit mode="assign" name="family" >
  167.      <string>Arial</string>
  168.    </edit>
  169.  </match>
  170.  
  171.  <match target="font" >
  172.    <test compare="eq" name="family" >
  173.      <string>Arial</string>
  174.      <string>Helvetica LT Std</string>
  175.      <string>Helvetica Neue LT Std</string>
  176.      <string>Helvetica</string>
  177.    </test>
  178.    <edit mode="assign" name="rgba" >
  179.      <const>rgb</const>
  180.    </edit>
  181.    <edit mode="assign" name="autohint" >
  182.      <bool>true</bool>
  183.    </edit>
  184.    <edit mode="assign" name="antialias" >
  185.      <bool>true</bool>
  186.    </edit>
  187.    <edit mode="assign" name="hinting" >
  188.      <bool>false</bool>
  189.    </edit>
  190.    <edit mode="assign" name="hintstyle" >
  191.      <const>hintnone</const>
  192.    </edit>
  193.  </match> -->
  194.  
  195. </fontconfig>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement