<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
   <!-- Replaces 'sans' with a specific font preference -->
   <match target="font" >
      <test name="family" qual="any" >
         <string>sans</string>
      </test>
      <edit mode="assign" name="family" >
         <string>Arial</string>
      </edit>
   </match>

   <!-- Replaces 'sans-serif' with a specific font preference -->
   <match target="font" >
      <test name="family" qual="any" >
         <string>sans-serif</string>
      </test>
      <edit mode="assign" name="family" >
         <string>Times New Roman</string>
      </edit>
   </match>

   <!-- substitute truetype fonts for crappy crappy bitmap ones -->
   <match target="pattern" >
      <edit name="prefer_outline" >
         <bool>true</bool>
      </edit>
   </match>

   <!-- Replaces 'Arial' normal with Liberation Sans -->
   <match target="pattern" >
      <test name="prefer_outline" >
         <bool>true</bool>
      </test>
      <test compare="less_eq" name="weight" >
         <const>medium</const>
      </test>
      <test name="family" >
         <string>Arial</string>
      </test>
      <edit binding="strong" mode="prepend" name="family" >
         <string>Liberation Sans</string>
      </edit>
      <!-- Needed for QT Apps if foundry is different. FYI, Opera displays foundry in its font selector. -->
      <edit name="foundry" mode="prepend" binding="same">
         <string>unknown</string>
      </edit>
   </match>

   <!-- Replaces <= 13 pt 'Courier New' non-bold with Courier 10 Pitch in GTk and QT -->
   <match target="pattern" name="family">
      <test name="prefer_outline" >
         <bool>true</bool>
      </test>
      <test compare="less" name="weight" >
         <const>bold</const>
      </test>
      <test name="family" qual="any">
         <string>Courier New</string>
      </test>
      <!-- Must use point size (not pixel size or QT won't pick up) -->
      <test qual="any" name="size" compare="less_eq">
       <int>13</int>
      </test>
      <edit binding="strong" mode="prepend" name="family" >
         <string>Courier 10 Pitch</string>
      </edit>
      <!-- Needed for QT Apps if foundry is different. -->
      <edit name="foundry" mode="prepend" binding="same">
         <string>Bitstream</string>
      </edit>
   </match>

   <!-- Replaces <= 13 pt 'Courier New' non-bold with Courier 10 Pitch FOR FIREFOX -->
   <match target="pattern" name="family">
      <test name="prefer_outline" >
         <bool>true</bool>
      </test>
      <test compare="less" name="weight" >
         <const>bold</const>
      </test>
      <test name="family" qual="any">
         <string>Courier New</string>
      </test>
      <!-- Must also use pixels for Firefox but conflicts with previous-->
      <test qual="any" name="pixelsize" compare="less_eq">
       <int>17</int>
      </test>
      <edit binding="strong" mode="prepend" name="family" >
         <string>Courier 10 Pitch</string>
      </edit>
   </match>

   <!-- Replaces 10 <= 13 pt 'Courier 10 Pitch' normal with Courier FOR QT AND GTK -->
   <match target="pattern" >
      <test name="prefer_outline" >
         <bool>true</bool>
      </test>
      <test compare="less_eq" name="weight" >
         <const>medium</const>
      </test>
      <test name="family" >
         <string>Courier 10 Pitch</string>
      </test>
      <!-- Must use point size (not pixel size or QT won't pick up) -->
      <test qual="any" name="size" compare="more">
       <int>10</int>
      </test>
      <test qual="any" name="size" compare="less_eq">
       <int>13</int>
      </test>
      <edit binding="strong" mode="prepend" name="family" >
         <string>Courier</string>
      </edit>
      <!-- Needed for QT Apps if foundry is different. Foundry is company that made replacement font. -->
      <edit name="foundry" mode="prepend" binding="same">
         <string>IBM</string>
      </edit>
   </match>

   <!-- Replaces 10 <= 13 pt 'Courier 10 Pitch' normal with Courier FOR FIREFOX -->
   <match target="pattern" >
      <test name="prefer_outline" >
         <bool>true</bool>
      </test>
      <test compare="less_eq" name="weight" >
         <const>medium</const>
      </test>
      <test name="family" >
         <string>Courier 10 Pitch</string>
      </test>
      <test qual="any" name="pixelsize" compare="more">
       <int>13</int>
      </test>
      <test qual="any" name="pixelsize" compare="less_eq">
       <int>17</int>
      </test>
      <edit binding="strong" mode="prepend" name="family" >
         <string>Courier</string>
      </edit>
   </match>

   <!-- Replaces 6 <= 8 pt 'Courier 10 Pitch' normal with Dark Courier due to 5 and 7 looking stupid QT/GTK-->
   <match target="pattern" >
      <test name="prefer_outline" >
         <bool>true</bool>
      </test>
      <test compare="less_eq" name="weight" >
         <const>medium</const>
      </test>
      <test name="family" >
         <string>Courier 10 Pitch</string>
      </test>
      <!-- Must use point size (not pixel size or QT won't pick up) -->
      <test qual="any" name="size" compare="more_eq">
       <int>6</int>
      </test>
      <test qual="any" name="size" compare="less">
       <int>9</int>
      </test>
      <edit binding="strong" mode="prepend" name="family" >
         <string>Dark Courier</string>
      </edit>
      <!-- Needed for QT Apps if foundry is different. Foundry is company that made replacement font. -->
      <edit name="foundry" mode="prepend" binding="same">
         <string>unknown</string>
      </edit>
   </match>

   <!-- Replaces 6 <= 8 pt 'Courier 10 Pitch' normal with Dark Courier due to 5 and 7 looking stupid FIREFOX-->
   <match target="pattern" >
      <test name="prefer_outline" >
         <bool>true</bool>
      </test>
      <test compare="less_eq" name="weight" >
         <const>medium</const>
      </test>
      <test name="family" >
         <string>Courier 10 Pitch</string>
      </test>
      <!-- Must use point size (not pixel size or QT won't pick up) -->
      <test qual="any" name="pixelsize" compare="more_eq">
       <int>8</int>
      </test>
      <test qual="any" name="pixelsize" compare="less">
       <int>12</int>
      </test>
      <edit binding="strong" mode="prepend" name="family" >
         <string>Dark Courier</string>
      </edit>
   </match>

   <!-- Replaces Bold 'Courier' with Bold Courier New-->
   <match target="pattern" >
      <test name="prefer_outline" >
         <bool>true</bool>
      </test>
      <test compare="more" name="weight" >
         <const>medium</const>
      </test>
      <test name="family" >
         <string>Courier</string>
      </test>
      <edit binding="strong" mode="prepend" name="family" >
         <string>Courier New</string>
      </edit>
      <!-- Needed for QT Apps if foundry is different. Foundry is company that made replacement font. -->
      <edit name="foundry" mode="prepend" binding="same">
         <string>monotype</string>
      </edit>
   </match>

   <!-- Arial Black -->
   <!-- A poor-quality font no matter how I try to fix it. -->
   <!-- Substitute Arial in bold weight for it. -->
   <match target="pattern">
      <test name="family" compare="eq" target="default">
         <string>Arial Black</string>
      </test>
      <edit name="family" mode="prepend" binding="same">
         <string>Arial</string>
      </edit>
      <edit name="weight" mode="assign">
         <const>bold</const>
      </edit>
   </match>

   <match target="pattern">
      <test name="family" compare="eq" target="default">
         <string>Arial</string>
      </test>
      <test compare="more" name="weight" >
         <const>bold</const>
      </test>
      <edit name="family" mode="prepend" binding="same">
         <string>Arial</string>
      </edit>
      <edit name="weight" mode="assign">
         <const>bold</const>
      </edit>
   </match>

   <!-- These are the base settings for all rendered fonts.
   We modify them for specific fonts later. -->
   <match target="font" >
      <edit mode="assign" name="rgba" >
         <const>rgb</const>
      </edit>
      <edit mode="assign" name="hinting" >
         <bool>true</bool>
      </edit>
      <edit mode="assign" name="autohint" >
         <bool>false</bool>
      </edit>
      <edit mode="assign" name="antialias" >
         <bool>true</bool>
      </edit>
      <edit mode="assign" name="hintstyle" >
         <const>hintfull</const>
      </edit>
   </match>

   <!-- Disable autohint for bold fonts, otherwise they look *too* bold -->
   <!--<match target="font" >
      <test compare="more" name="weight" >
         <const>medium</const>
      </test>
      <edit mode="assign" name="autohint" >
         <bool>false</bool>
      </edit>
   </match>
-->
   <!-- Autohinter for these non-bold fonts -->
   <match target="font" >
      <test name="family" qual="any" >
         <string>DejaVu LGC Sans Mono</string>
         <string>DejaVu Sans Mono</string>
         <string>DejaVu Sans</string>
         <string>DejaVu Serif</string>
         <string>Lucida Console</string>
         <string>Lucida Sans Unicode</string>
         <string>Bitstream Vera Sans</string>
         <string>Bitstream Vera Sans Mono</string>
         <string>Bitstream Vera Serif</string>
         <string>Linux Libertine</string>
         <string>cmbx10</string>
         <string>cmex10</string>
         <string>cmmi10</string>
         <string>cmr10</string>
         <string>cmsy10</string>
         <string>eufm10</string>
         <string>msam10</string>
         <string>msbm10</string>
         <string>wasy10</string>
         <string>Trebuchet MS</string>
         <string>Tahoma</string>
      </test>
      <test compare="less_eq" name="weight" >
         <const>medium</const>
      </test>
      <edit mode="assign" name="autohint" >
         <bool>true</bool>
      </edit>
   </match>
-->
   <!-- Reject bitmap fonts in favour of Truetype, Postscript, etc. -->
   <selectfont>
      <rejectfont>
         <pattern>
            <patelt name="scalable" >
               <bool>false</bool>
            </patelt>
         </pattern>
      </rejectfont>
   </selectfont>
   <!-- Use no AA for these fonts -->
   <match target="font" >
      <test name="family" qual="any" >
         <string>dummy</string>
      </test>
      <edit mode="assign" name="antialias" >
         <bool>false</bool>
      </edit>
      <edit mode="assign" name="hintstyle" >
         <const>hintslight</const>
      </edit>
   </match>

   <!-- Make these fonts use no antialiasing or hinting -->
   <match target="font" >
      <test name="family" qual="any" >
         <string>ProFontWindows</string>
         <string>Terminus</string>
      </test>
      <test compare="less" name="weight" >
         <const>medium</const>
      </test>
      <edit mode="assign" name="hintstyle" >
         <const>hintnone</const>
      </edit>
      <edit mode="assign" name="rgba" >
         <const>rgb</const>
      </edit>
      <edit mode="assign" name="antialias" >
         <bool>false</bool>
      </edit>
      <edit mode="assign" name="hinting" >
         <bool>false</bool>
      </edit>
   </match>

   <!-- Make these non-bold fonts use slight hinting and BCI -->
   <match target="font" >
      <test name="family" qual="any" >
         <string>Andale Mono</string>
         <string>Georgia</string>
         <string>Monaco</string>
         <string>Segoe UI</string>
         <string>Calibri</string>
         <string>Candara</string>
         <string>Cambria</string>
         <string>Charis SIL</string>
         <string>Constantia</string>
         <string>Corbel</string>
         <string>Courier</string>
         <string>Consolas</string>
         <string>David</string>
         <string>Dark Courier</string>
         <string>Nimbus Roman No9 L</string>
         <string>Nyala</string>
         <string>Palatino Linotype</string>
         <string>Bookman Old Style</string>
         <string>Book Antiqua</string>
         <string>Century</string>
         <string>Century Schoolbook L</string>
         <string>Comic Sans MS</string>
         <string>Lucida Console</string>
         <string>Luxi Mono</string>
         <string>Luxi Sans</string>
         <string>Luxi Serif</string>
         <string>Liberation Mono</string>
         <string>Liberation Serif</string>
         <string>Microsoft Sans Serif</string>
         <string>Arial Narrow</string>
         <string>Sylfaen</string>
         <string>MgOpen Cosmetica</string>
         <string>Frutiger Linotype</string>
         <string>Times New Roman</string>
      </test>
      <test compare="less" name="weight" >
         <const>medium</const>
      </test>
      <edit mode="assign" name="hintstyle" >
         <const>hintslight</const>
      </edit>
      <edit mode="assign" name="rgba" >
         <const>rgb</const>
      </edit>
      <edit mode="assign" name="autohint" >
         <bool>false</bool>
      </edit>
      <edit mode="assign" name="hinting" >
         <bool>true</bool>
      </edit>
   </match>

   <!-- Make these fonts use slight hinting and autohint-->
   <match target="font" >
      <test name="family" qual="any" >
         <string>MgOpen Cosmetica</string>
         <string>MgOpen Canonica</string>
         <string>MgOpen Modata</string>
         <string>MgOpen Moderna</string>
         <string>Courier 10 Pitch</string>
      </test>
      <edit mode="assign" name="hintstyle" >
         <const>hintslight</const>
      </edit>
      <edit mode="assign" name="rgba" >
         <const>rgb</const>
      </edit>
      <edit mode="assign" name="autohint" >
         <bool>true</bool>
      </edit>
      <edit mode="assign" name="hinting" >
         <bool>true</bool>
      </edit>
   </match>

   <!-- Segoe UI modification for 9 pt non-bold-->
   <match target="font" >
      <test compare="eq" name="family" qual="any" >
         <string>Segoe UI</string>
      </test>
      <test compare="eq" name="size" qual="any" >
         <double>9</double>
      </test>
      <test compare="less" name="weight" >
         <const>medium</const>
      </test>
      <edit mode="assign" name="aspect" >
         <double>0.95</double>
      </edit>
   </match>

   <!-- Courier New modification for non-bold 9-11 because looks bad otherwise-->
<!--   <match target="font" >
      <test compare="eq" name="family" qual="any" >
         <string>Courier New</string>
      </test>
      <test compare="more_eq" name="pixelsize" qual="any" >
         <double>12</double>
      </test>
      <test compare="less_eq" name="pixelsize" qual="any" >
         <double>15</double>
      </test>
      <edit mode="assign" name="pixelsize" >
         <double>13</double>
      </edit>
   </match>

-->
   <!-- Courier 10 Pitch modification for non-bold 11-13 pt because looks bad otherwise-->
   <match target="font" >
      <test compare="eq" name="family" qual="any" >
         <string>Courier 10 Pitch</string>
      </test>
      <test compare="more_eq" name="size" qual="any" >
         <double>11</double>
      </test>
      <test compare="less_eq" name="size" qual="any" >
         <double>13</double>
      </test>
      <test compare="less" name="weight" >
         <const>medium</const>
      </test>
      <edit mode="assign" name="hintstyle" >
         <const>hintfull</const>
      </edit>
   </match>

   <!-- Verdana modification for non-bold-->
   <match target="font" >
      <test compare="eq" name="family" qual="any" >
         <string>Verdana</string>
      </test>
      <test compare="more_eq" name="size" qual="any" >
         <double>9</double>
      </test>
      <test compare="less" name="size" qual="any" >
         <double>10.5</double>
      </test>
      <test compare="less" name="weight" >
         <const>medium</const>
      </test>
      <edit mode="assign" name="autohint" >
         <bool>true</bool>
      </edit>
   </match>

   <!-- Arial modification for non-bold-->
   <!--<match target="font" >
      <test qual="any" name="family" compare="eq" >
         <string>Arial</string>
      </test>
      <test qual="any" compare="more" name="size" >
         <double>11</double>
      </test>
      <test qual="any" compare="less" name="size" >
         <double>16</double>
      </test>
      <test compare="less" name="weight" >
         <const>medium</const>
      </test>
      <edit mode="assign" name="autohint" >
         <bool>true</bool>
      </edit>
   </match>
-->
   <!-- Times New modification for 11 and 12 pt -->
   <match target="font" >
      <test compare="eq" name="family" qual="any" >
         <string>Times New Roman</string>
      </test>
      <test compare="more_eq" name="pixelsize" qual="any" >
         <double>15</double>
      </test>
      <test compare="less" name="pixelsize" qual="any" >
         <double>17</double>
      </test>
      <edit mode="assign" name="pixelsize" >
         <double>15</double>
      </edit>
      <edit mode="assign" name="hintstyle" >
         <const>hintslight</const>
      </edit>
      <edit mode="assign" name="autohint" >
         <bool>false</bool>
      </edit>
   </match>

   <!--<match target="pattern">
   <test name="family" compare="eq" target="default">
      <string>Times New Roman</string>
   </test>
   <edit name="weight" mode="assign" target="default">
      <double>120</double></edit>
</match>
-->
   <!-- If Arial is more than heavy, just make bold instead -->
   <!--   <match target="pattern" name="family">
      <test name="family" qual="any" >
         <string>Arial</string>
      </test>
      <test compare="more" name="weight" >
         <const>bold</const>
      </test>
      <edit name="weight" mode="assign">
         <const>bold</const>
      </edit>
   </match>

-->
   <!-- Times New modification – if not italic, condense it a bit -->
   <match target="font" >
      <test compare="eq" name="family" qual="any" >
         <string>Times New Roman</string>
      </test>
      <test compare="more_eq" name="pixelsize" qual="any" >
         <double>15</double>
      </test>
      <test compare="less" name="pixelsize" qual="any" >
         <double>17</double>
      </test>
      <test compare="eq" name="slant" qual="any" >
         <const>roman</const>
      </test>
      <edit mode="assign" name="aspect" >
         <double>0.99</double>
      </edit>
   </match>

   <!-- Fix small Times New when bolded -->
   <match target="font" >
      <test compare="eq" name="family" qual="any" >
         <string>Times New Roman</string>
      </test>
      <test compare="less_eq" name="pixelsize" qual="any" >
         <double>13</double>
      </test>
      <test compare="more" name="weight" >
         <const>medium</const>
      </test>
      <edit mode="assign" name="hintstyle" >
         <const>hintslight</const>
      </edit>
      <edit mode="assign" name="autohint" >
         <bool>true</bool>
      </edit>
   </match>

   <!-- Make These Apple fonts (bold and non-bold) use slight hinting -->
   <match target="font" >
      <test name="family" qual="any" >
         <string>Lucida Grande</string>
         <string>Garamond</string>
         <string>Apple Garamond</string>
         <string>Apple Garamond Light</string>
         <string>Apple Symbols</string>
         <string>Aquabase</string>
         <string>Hard Gothic</string>
         <string>Optima</string>
         <string>American Typewriter</string>
         <string>Apple Chancery</string>
         <string>Baskerville</string>
         <string>BrushScript</string>
         <string>Big Caslon</string>
         <string>Cochin</string>
         <string>Chicago</string>
         <string>Charcoal</string>
         <string>Charcoal CY</string>
         <string>Copperplate</string>
         <string>Chalkboard</string>
         <string>Futura</string>
         <string>Gill Sans</string>
         <string>Geneva CY</string>
         <string>Helvetica Neue</string>
         <string>Helvetica CY</string>
         <string>Herculanum</string>
         <string>Hoefler Text</string>
         <string>Kai</string>
         <string>Marker Felt</string>
         <string>Optima</string>
         <string>Papyrus</string>
         <string>Skia</string>
         <!--<string>Techno</string>-->
         <string>Zapfino</string>
      </test>
      <edit mode="assign" name="hintstyle" >
         <const>hintslight</const>
      </edit>
      <edit mode="assign" name="rgba" >
         <const>rgb</const>
      </edit>
      <edit mode="assign" name="autohint" >
         <bool>false</bool>
      </edit>
      <edit mode="assign" name="hinting" >
         <bool>true</bool>
      </edit>
   </match>
o
   <!-- Make These Apple fonts (bold and non-bold) use autohinting -->
   <match target="font" >
      <test name="family" qual="any" >
         <string>Didot</string>
      </test>
      <edit mode="assign" name="hintstyle" >
         <const>hintslight</const>
      </edit>
      <edit mode="assign" name="rgba" >
         <const>rgb</const>
      </edit>
      <edit mode="assign" name="autohint" >
         <bool>true</bool>
      </edit>
      <edit mode="assign" name="hinting" >
         <bool>true</bool>
      </edit>
   </match>

   <!-- Make These Misc fonts (bold and non-bold) use slight hinting -->
   <match target="font" >
      <test name="family" qual="any" >
         <string>JasmineUPC</string>
         <string>ALPHA-Demo</string>
         <string>Padauk</string>
         <string>AngsanaUPC</string>
         <string>Angsana New</string>
         <string>AR PL ShanHeiSun Uni</string>
         <string>Baekmuk Gulim</string>
         <string>Browallia New</string>
         <string>BrowalliaUPC</string>
         <string>Cordia New</string>
         <string>CordiaUPC</string>
         <string>DilenniaUPC</string>
         <string>Estrangelo Edessa</string>
         <string>EucrosiaUPC</string>
         <string>Euphemia</string>
         <string>Franklin Gothic Medium</string>
         <string>FrankRuehl</string>
         <string>FreesiaUPC</string>
         <string>Guatami</string>
         <string>IrisUPC</string>
         <string>Jomolhari</string>
         <string>KodchiangUPC</string>
         <string>Levinim MT</string>
         <string>LilyUPC</string>
         <string>AngsanaUPC</string>
         <string>AngsanaUPC</string>
         <string>Lohit Bengali</string>
         <string>Lohit Gujarati</string>
         <string>Lohit Hindi</string>
         <string>Lohit Kannada</string>
         <string>Lohit Malayalam</string>
         <string>Lohit Punjabi</string>
         <string>Lohit Oriya</string>
         <string>Lohit Tamil</string>
         <string>Lohit Telugu</string>
         <string>Lohit Hindi</string>
         <string>Malgun Gothic</string>
         <string>Microsoft Himalaya</string>
         <string>Microsoft JhengHei</string>
         <string>Microsoft Uighur</string>
         <string>Microsoft YaHei</string>
         <string>Microsoft Yi Baiti</string>
         <string>Miriam Fixed</string>
         <string>Mongolian Baiti</string>
         <string>MoolBoran</string>
         <string>Narkisim</string>
         <string>Plantagenet Cherokee</string>
         <string>Raavi</string>
         <string>TITUS Cyberbit Basic</string>
         <string>Traditional Arabic</string>
         <string>Tunga</string>
         <string>Vrinda</string>
      </test>
      <edit mode="assign" name="hintstyle" >
         <const>hintslight</const>
      </edit>
      <edit mode="assign" name="rgba" >
         <const>rgb</const>
      </edit>
      <edit mode="assign" name="autohint" >
         <bool>false</bool>
      </edit>
      <edit mode="assign" name="hinting" >
         <bool>true</bool>
      </edit>
   </match>

   <!-- Artificial oblique for fonts without an italic or oblique version -->
   <match target="font" >
      <!-- check to see if the font is roman -->
      <test name="slant" >
         <const>roman</const>
      </test>
      <!-- check to see if the pattern requested non-roman -->
      <test target="pattern" compare="not_eq" name="slant" >
         <const>roman</const>
      </test>
      <!-- multiply the matrix to slant the font -->
      <edit mode="assign" name="matrix" >
         <times>
            <name>matrix</name>
            <matrix>
               <double>1</double>
               <double>0.2</double>
               <double>0</double>
               <double>1</double>
            </matrix>
         </times>
      </edit>
      <!-- pretend the font is oblique now -->
      <edit mode="assign" name="slant" >
         <const>oblique</const>
      </edit>
   </match>

   <!-- Synthetic emboldening for fonts that do not have bold face available -->
   <match target="font" >
      <!-- check to see if the font is just regular -->
      <test compare="less_eq" name="weight" >
         <int>100</int>
      </test>
      <!-- check to see if the pattern requests bold -->
      <test target="pattern" compare="more_eq" name="weight" >
         <int>200</int>
      </test>
      <!-- set the embolden flag -->
      <edit mode="assign" name="embolden" >
         <bool>true</bool>
      </edit>
   </match>

   <!-- Rescan configuration every 30 seconds when FcFontSetList is called -->
   <rescan>
      <int>30</int>
   </rescan>
   <!-- Set for fonts below 10 pixels in size for legibility. -->
   <match target="font" >
      <test compare="less" name="pixelsize" >
         <double>10</double>
      </test>
      <edit mode="assign" name="hintstyle" >
         <const>hintslight</const>
      </edit>
      <edit mode="assign" name="rgba" >
         <const>rgb</const>
      </edit>
      <edit mode="assign" name="autohint" >
         <bool>false</bool>
      </edit>
      <edit mode="assign" name="hinting" >
         <bool>true</bool>
      </edit>
   </match>

   <!-- Fix one particular bold Arial font size -->
   <match target="font" >
      <test compare="eq" name="family" qual="any" >
         <string>Arial</string>
         <string>Liberation Sans</string>
      </test>
      <!--<test qual="any" name="pixelsize" compare="more">
       <double>10.0</double>
      </test>
      <test qual="any" name="pixelsize" compare="less">
       <double>10.5</double>
      </test>-->
      <test qual="any" name="size" compare="more">
       <double>7.0</double>
      </test>
      <test qual="any" name="size" compare="less">
       <double>8.0</double>
      </test>
      <test compare="more" name="weight" >
         <const>medium</const>
      </test>
      <edit mode="assign" name="hintstyle" >
         <const>hintslight</const>
      </edit>
   </match>

   <!-- Exceptions to the above -->
   <!--<match target="font" >
      <test name="family" qual="any" >
         <string>Courier New</string>
      </test>
      <edit mode="assign" name="hintstyle" >
         <const>hintfull</const>
      </edit>
   </match>
-->
   <!-- Set no hinting for fonts above 16 pixels in size; they don't need it. -->
   <!--<match target="font" >
      <test compare="more" name="pixelsize" >
         <double>16</double>
      </test>
      <edit mode="assign" name="rgba" >
         <const>none</const>
      </edit>
      <edit mode="assign" name="hinting" >
         <bool>false</bool>
      </edit>
   </match>

   -->
   <!-- If weight is greater than 65 but less than 100, boost it to 100 (medium weight) -->
   <!--<match target="pattern">
   <test name="weight" compare="less">
      <double>100</double></test>
   <test name="weight" compare="more">
      <double>70</double></test>
   <edit name="weight" mode="assign" target="default">
      <double>100</double></edit>
</match>
-->
   <!-- If pixelsize is greater than 17, use full hinting for non-bold, non-italic-->
   <match target="font" >
      <test compare="more" name="pixelsize" qual="any" >
         <double>17</double>
      </test>
      <test compare="less" name="weight" >
         <const>medium</const>
      </test>
      <test compare="eq" name="slant" qual="any" >
         <const>roman</const>
      </test>
      <edit mode="assign" name="hintstyle" >
         <const>hintfull</const>
      </edit>
      <edit mode="assign" name="autohint" >
         <bool>false</bool>
      </edit>
      <edit mode="assign" name="hinting" >
         <bool>true</bool>
      </edit>
   </match>

   <dir>/home/erik/.fontmatrix</dir>
   <!-- If italic and not bold, always use slight hinting, because it looks better n stuff -->
   <match target="font" >
      <test compare="not_eq" name="slant" qual="any" >
         <const>roman</const>
      </test>
      <test compare="less" name="weight" >
         <const>medium</const>
      </test>
      <edit mode="assign" name="hintstyle" >
         <const>hintslight</const>
      </edit>
   </match>

</fontconfig>
