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

  <!-- ## Override global settings in certain situations ## -->
  <!-- Replace "Lucida Grande 9px bold with Lucida Sans Unicode. -->
  <match target="pattern">
    <test name="family" compare="eq">
      <string>Lucida Grande</string>
    </test>
    <test name="pixelsize" compare="eq">
      <double>9</double>
    </test>
    <edit name="family" mode="prepend" binding="same">
      <string>Lucida Sans Unicode</string>
    </edit>
  </match>

  <!-- Make these fonts use no antialiasing or hinting (circa DOS / X11) -->
  <match target="font">
    <test name="family">
      <string>ProFontWindows</string>
    </test>
    <edit name="hintstyle" mode="assign">
      <const>hintnone</const>
    </edit>
    <edit name="antialias" mode="assign">
      <bool>false</bool>
    </edit>
    <edit name="hinting" mode="assign">
      <bool>false</bool>
    </edit>
    <edit name="prefer_bitmap" mode="assign">
      <bool>true</bool>
    </edit>
  </match>

  <match target="font">
    <test name="family">
      <string>Terminus</string>
    </test>
    <edit name="hintstyle" mode="assign">
      <const>hintnone</const>
    </edit>
    <edit name="antialias" mode="assign">
      <bool>false</bool>
    </edit>
    <edit name="hinting" mode="assign">
      <bool>false</bool>
    </edit>
    <edit name="prefer_bitmap" mode="assign">
      <bool>true</bool>
    </edit>
  </match>

  <match target="font">
    <test name="family">
      <string>Terminus (ttf)</string>
    </test>
    <edit name="hintstyle" mode="assign">
      <const>hintnone</const>
    </edit>
    <edit name="antialias" mode="assign">
      <bool>false</bool>
    </edit>
    <edit name="hinting" mode="assign">
      <bool>false</bool>
    </edit>
    <edit name="prefer_bitmap" mode="assign">
      <bool>true</bool>
    </edit>
  </match>

  <!-- Treat Luxi Mono as a monospace font -->
  <match target="scan">
    <test name="family">
      <string>Luxi Mono</string>
    </test>
    <edit name="spacing">
      <int>100</int>
    </edit>
  </match>

  <!-- Monochrome BCI for these fonts (circa Windows 98). -->
  <!-- This will make them look like bitmap fonts.  Good for monospace.
       This should only be used by fonts that contain TrueType instructions. -->
  <!--
  <match target="font">
    <test name="family">
      <string>FONT NAME HERE</string>
    </test>
    <edit name="hinting" mode="assign">
      <bool>true</bool>
    </edit>
    <edit name="autohint" mode="assign">
      <bool>false</bool>
    </edit>
    <edit name="antialias" mode="assign">
      <bool>false</bool>
    </edit>
    <edit name="hintstyle" mode="assign">
      <const>hintfull</const>
    </edit>
  </match>
  -->

  <!-- Full autohint. -->
  <!-- Makes vertical/horizontal stems align to pixels, but is not
       true to the glyphs. Some glyphs may look forced into place,
       however they are very sharp. -->
  <!--
  <match target="font">
    <test name="family">
      <string>FONT NAME HERE</string>
    </test>
    <edit name="hinting" mode="assign">
      <bool>true</bool>
    </edit>
    <edit name="autohint" mode="assign">
      <bool>true</bool>
    </edit>
    <edit name="antialias" mode="assign">
      <bool>true</bool>
    </edit>
    <edit name="hintstyle" mode="assign">
      <const>hintfull</const>
    </edit>
  </match>
  -->

  <!-- Light autohint on italics. -->
  <!-- Use for anything that is full auto or TT hinted above. -->
  <!--
  <match target="font">
    <test name="family">
      <string>FONT NAME HERE</string>
    </test>
    <test target="pattern" name="slant" compare="not_eq">
      <const>roman</const>
    </test>
    <edit name="hinting" mode="assign">
      <bool>true</bool>
    </edit>
    <edit name="autohint" mode="assign">
      <bool>true</bool>
    </edit>
    <edit name="antialias" mode="assign">
      <bool>true</bool>
    </edit>
    <edit name="hintstyle" mode="assign">
      <const>hintslight</const>
    </edit>
  </match>
  -->

</fontconfig>
