Share Pastebin
Guest
Public paste!

Joel Calado

By: a guest | Nov 21st, 2007 | Syntax: Bash | Size: 2.84 KB | Hits: 26 | Expires: Never
Copy text to clipboard
  1. <?xml version='1.0'?>
  2. <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
  3. <!-- /etc/fonts/local.conf file to configure system font access -->
  4. <fontconfig>
  5.  <!-- Use the Autohinter -->
  6.  <match target="font" >
  7.   <edit mode="assign" name="autohint" >
  8.    <bool>true</bool>
  9.   </edit>
  10.  </match>
  11.  <!-- Disable Autohinting for bold fonts -->
  12.  <match target="font" >
  13.   <test compare="more" name="weight" >
  14.    <const>medium</const>
  15.   </test>
  16.   <edit mode="assign" name="autohint" >
  17.    <bool>false</bool>
  18.   </edit>
  19.  </match>
  20.  <!-- Enable sub-pixel rendering -->
  21.  <!-- Uncomment this if you have an LCD screen
  22.         <match target="font">
  23.                 <test qual="all" name="rgba"><const>unknown</const></test>
  24.                 <edit name="rgba" mode="assign"><const>rgb</const></edit>
  25.         </match>
  26. -->
  27.  <!-- Exclude/Include a range of fonts for Anti Aliasing -->
  28.  <!--
  29.         <match target="font">
  30.                 <test qual="any" name="size" compare="more"><double>9</double></test>
  31.                 <test qual="any" name="size" compare="less"><double>14</double></test>
  32.                 <edit name="antialias" mode="assign"><bool>true</bool></edit>
  33.         </match>
  34. -->
  35.  <!-- And/Or disable Anti Aliasing for a range on pixel-based size.
  36.      Disabling this using both methods seems to fix Firefox. -->
  37.  <!--
  38.         <match target="font">
  39.                 <test compare="less" name="pixelsize" qual="any"><double>20</double></test>
  40.                 <edit mode="assign" name="antialias"><bool>false</bool></edit>
  41.         </match>
  42. -->
  43.  <!-- Other config options that were added to previous versions of config files in the Gentoo Wiki HOWTO. Need clarification. -->
  44.  <match target="font" >
  45.   <edit mode="assign" name="hinting" >
  46.    <bool>true</bool>
  47.   </edit>
  48.   <edit mode="assign" name="hintstyle" >
  49.    <const>hintmedium</const>
  50.   </edit>
  51.  </match>
  52.  <!-- Replace Courier with a better-looking font -->
  53.  <match target="pattern" name="family" >
  54.   <test name="family" qual="any" >
  55.    <string>Courier</string>
  56.   </test>
  57.   <edit mode="assign" name="family" >
  58.    <!-- Other choices - Courier New, Luxi Mono -->
  59.    <string>Bitstream Vera Sans Mono</string>
  60.   </edit>
  61.  </match>
  62.  <!-- Reject bitmap fonts in favour of Truetype, Postscript, etc. -->
  63.  <selectfont>
  64.   <rejectfont>
  65.    <pattern>
  66.     <patelt name="scalable" >
  67.      <bool>false</bool>
  68.     </patelt>
  69.    </pattern>
  70.   </rejectfont>
  71.  </selectfont>
  72.  <match target="font" >
  73.   <edit mode="assign" name="rgba" >
  74.    <const>none</const>
  75.   </edit>
  76.  </match>
  77.  <match target="font" >
  78.   <edit mode="assign" name="hinting" >
  79.    <bool>true</bool>
  80.   </edit>
  81.  </match>
  82.  <match target="font" >
  83.   <edit mode="assign" name="hintstyle" >
  84.    <const>hintmedium</const>
  85.   </edit>
  86.  </match>
  87.  <match target="font" >
  88.   <edit mode="assign" name="antialias" >
  89.    <bool>true</bool>
  90.   </edit>
  91.  </match>
  92. </fontconfig>