Disable font smoothing for a particular font

Some fonts look better when they are rendered without font smoothing. This tip illustrates how to write a .fonts.conf configuration file so that only particular fonts are rendered without antialiasing. The effect can be achieved by adding the following snippet to the file ~/.fonts.conf.
<match target="font">
   <test name="family" qual="any">
          <string>Arial</string>
          <string>Courier New</string>
   </test>
   <edit name="antialias"><bool>False</bool></edit>
</match>
Just replace the <string> elements with the font names that you would like to affect. You can also just affect specific fonts at specific sizes, by adding more <test> elements. For example:
<match target="font">
   <test name="family" qual="any"><string>Arial</string></test>
   <test name="pixelsize" compare="less_eq"><int>16</int></test>
   <edit name="antialias"><bool>False</bool></edit>
</match>
This example would disable antialiasing for Arial for all sizes of 16 pixels or less. For complete documentation on the various parameters you can test and edit, read the man page for fonts.conf.