<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- TIPS & TRICKS
  Place settings in /etc/fonts/local.conf file to configure system-wide
  If antialias disabled, then ALSO disable sub-pixel rendering.
  Edit KDE font sizes in ~/.kde/share/config/kdeglobals
  autohinter is NOT affected by hintstyle, nor possibly by rgba
-->

<fontconfig>
  <!-- DPI Settings (72, 96, 120, etc.)  
  <match target="pattern" >
      <edit name="dpi" mode="assign"><double>96</double></edit>
  </match>
  -->

  <!-- test font dir --> 
  <dir>/home/thayer/.fontsTemp</dir>

  <match target="font" >
    <!-- sub-pixel rending (none, rgb, vrgb, bgr, vbgr,  -->
    <edit name="rgba" mode="assign"><const>vrgb</const></edit>
    <edit name="autohint" mode="assign"><bool>true</bool></edit>
    <edit name="hinting" mode="assign"><bool>false</bool></edit>
    <!-- hinting style (hintnone, hintslight, hintmedium, hintfull ) -->
    <edit name="hintstyle" mode="assign"><const>hintmedium</const></edit>
    <edit name="antialias" mode="assign"><bool>true</bool></edit>
  </match>

  <!-- font replacement 
  <match target="pattern">
    <test name="family"><string>Monospace</string></test>
    <edit name="family" mode="assign"><string>Dina</string></edit>
  </match>
 -->
  <!-- force some monospace fonts to use full hinting -->
  <match target="font">
    <test name="family">
      <string>Bitstream Vera Sans Mono</string>
      <string>DejaVu Sans Mono</string>
      <string>Andale Mono</string>
    </test>
    <edit name="antialias" mode="assign"><bool>true</bool></edit>
    <edit name="autohint" mode="assign"><bool>false</bool></edit>
    <edit name="hinting" mode="assign"><bool>true</bool></edit>
    <edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
  </match>  

  <!-- toggle hinting for bolded Fonts (true/false) 
  <match target="font">
    <test name="weight" compare="more"><const>medium</const></test>
    <edit name="autohint" mode="assign"><bool>false</bool></edit>
  </match>
  -->
  
  <!-- disable antialiasing for small fonts 
  <match target="pattern">
    <test qual="any" name="size" compare="less_eq"><int>12</int></test>
    <edit name="antialias" mode="assign"><bool>false</bool></edit>
  </match> 
  -->
  
  <!-- exclude/include a range of fonts for Antialiasing 
  <match target="font">
    <test name="size" compare="less" qual="any"><double>7</double></test>
    <test name="pixelsize" compare="less" qual="any"><double>14</double></test>
    <edit name="antialias" mode="assign"><bool>false</bool></edit>
  </match>
  -->
  
  <!-- Windows classic font appearance 
  <match target="font">
    <test compare="more" name="size" qual="any"><double>12</double></test>
    <edit name="antialias" mode="assign"><bool>true</bool></edit>
  </match>
  <match target="font">
    <test compare="more" name="pixelsize" qual="any"><double>17</double></test>
    <edit name="antialias" mode="assign"><bool>true</bool></edit>
  </match>
  -->
  
</fontconfig>


