<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

  <!--
      install ==> print/freetype2 [WITH_LCD_FILTERING=yes and assumes BCI not disabled]
      install ==> x11-fonts/dejavu
      install ==> x11-fonts/webfonts
      install ==> x11-fonts/terminus-font
  -->

  <!-- reject all bitmap fonts -->
  <selectfont>
    <rejectfont>
      <pattern>
        <patelt name="scalable"> <bool>false</bool> </patelt>
      </pattern>
    </rejectfont>
  </selectfont>

  <!-- preferred aliases -->
  <alias>
    <family>serif</family>
    <prefer>
      <family>DejaVu Serif</family>
    </prefer>
  </alias>

  <!-- preferred aliases -->
  <alias>
    <family>sans-serif</family>
    <prefer>
      <family>DejaVu Sans</family>
    </prefer>
  </alias>

  <!-- preferred aliases -->
  <alias>
    <family>monospace</family>
    <prefer>
      <family>DejaVu Sans Mono</family>
      <family>Terminus</family>
    </prefer>
  </alias>

  <!-- default quality settings -->
  <match target="font">
    <edit mode="assign" name="antialias"> <bool>true</bool>       </edit>
    <edit mode="assign" name="autohint">  <bool>true</bool>       </edit>
    <edit mode="assign" name="dpi">       <double>75</double>     </edit>
    <edit mode="assign" name="hinting">   <bool>true</bool>       </edit>
    <edit mode="assign" name="hintstyle"> <const>hintfull</const> </edit>
    <edit mode="assign" name="rgba">      <const>none</const>     </edit>
  </match>

  <!-- reduce ringing ==> requires freetype2 'WITH_LCD_FILTERING=yes' -->
  <match target="font">
    <edit mode="assign" name="lcdfilter"> <const>lcdlight</const> </edit>
  </match>

  <!-- disable autohinting for bold fonts -->
  <match target="font">
    <test compare="more" name="weight">   <const>medium</const> </test>
    <edit mode="assign"  name="autohint"> <bool>false</bool>    </edit>
  </match>

  <!-- disable autohinting for fonts that don't need it -->
  <match target="pattern">
    <test qual="any" name="family">
      <string>Andale Mono</string>
    </test>
    <test qual="any" name="family">
      <string>Arial</string>
    </test>
    <test qual="any" name="family">
      <string>Arial Black</string>
    </test>
    <test qual="any" name="family">
      <string>Comic Sans MS</string>
    </test>
    <test qual="any" name="family">
      <string>Courier New</string>
    </test>
    <test qual="any" name="family">
      <string>Georgia</string>
    </test>
    <test qual="any" name="family">
      <string>Impact</string>
    </test>
    <test qual="any" name="family">
      <string>Trebuchet MS</string>
    </test>
    <test qual="any" name="family">
      <string>Tahoma</string>
    </test>
    <test qual="any" name="family">
      <string>Times New Roman</string>
    </test>
    <test qual="any" name="family">
      <string>Verdana</string>
    </test>
    <test qual="any" name="family">
      <string>Webdings</string>
    </test>
    <edit mode="assign" name="hinting">  <bool>true</bool>  </edit>
    <edit mode="assign" name="autohint"> <bool>false</bool> </edit>
  </match>

  <!-- below is from Vermaden -->
  <!-- replace these with a better looking font (MONO) -->
  <match target="pattern">
    <test name="family"    qual="any"><string>Courier [Adobe]</string></test>
    <edit name="family" mode="assign"><string>Courier 10 Pitch</string></edit>
  </match>

  <match target="pattern">
    <test name="family"    qual="any"><string>courier</string></test>
    <edit name="family" mode="assign"><string>Courier 10 Pitch</string></edit>
  </match>

  <!-- replace these with a better looking font (SANS) -->
  <match target="pattern">
    <test name="family"    qual="any"><string>helvetica</string></test>
    <edit name="family" mode="assign"><string>arial</string></edit>
    <!-- <edit name="family" mode="assign"><string>trebuchet ms</string></edit> -->
  </match>

  <match target="pattern">
    <test name="family"    qual="any"><string>times</string></test>
    <edit name="family" mode="assign"><string>georgia</string></edit>
  </match>

</fontconfig>

Generated by jrm using scpaste at Mon Oct 17 23:29:19 2016. ADT. (original)