Blob Blame History Raw
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/conf.d/20-dejavu.conf

     Define aliasing and other fontconfig settings for DejaVu main families

     © 2006 Nicolas Mailhot <nicolas.mailhot at laposte.net>
     This file is distributed under the terms of the GNU General
     Public License (GPL) version 2. Copies of the GPL can be obtained from:
     http://www.gnu.org/licenses/gpl.html

     $Id$
-->
<fontconfig>
<!-- Declare DejaVu Sans a valid substitute for all known Bitstream Vera Sans
     derivatives which kept original metrics -->
  <match>
    <test name="family">
      <string>Bitstream Vera Sans</string>
    </test>
    <edit name="family" mode="append" binding="same">
      <string>DejaVu Sans</string>
    </edit>
  </match>
  <match>
    <test name="family">
      <string>DejaVu LGC Sans</string>
    </test>
    <edit name="family" mode="append" binding="same">
      <string>DejaVu Sans</string>
    </edit>
  </match>
  <match>
    <test name="family">
      <string>Arev Sans</string>
    </test>
    <edit name="family" mode="append" binding="same">
      <string>DejaVu Sans</string>
    </edit>
  </match>
  <match>
    <test name="family">
      <string>SUSE Sans</string>
    </test>
    <edit name="family" mode="append" binding="same">
      <string>DejaVu Sans</string>
    </edit>
  </match>
  <match>
    <test name="family">
      <string>Hunky Sans</string>
    </test>
    <edit name="family" mode="append" binding="same">
      <string>DejaVu Sans</string>
    </edit>
  </match>
  <match>
    <test name="family">
      <string>Verajja</string>
    </test>
    <edit name="family" mode="append" binding="same">
      <string>DejaVu Sans</string>
    </edit>
  </match>
  <match>
    <test name="family">
      <string>Bepa</string>
    </test>
    <edit name="family" mode="append" binding="same">
      <string>DejaVu Sans</string>
    </edit>
  </match>
  <match>
    <test name="family">
      <string>Olwen Sans</string>
    </test>
    <edit name="family" mode="append" binding="same">
      <string>DejaVu Sans</string>
    </edit>
  </match>
<!-- Declare DejaVu Serif a valid substitute for all known Bitstream Vera Serif
     derivatives which kept the original metrics -->
  <match>
    <test name="family">
      <string>Bitstream Vera Serif</string>
    </test>
    <edit name="family" mode="append" binding="same">
      <string>DejaVu Serif</string>
    </edit>
  </match>
  <match>
    <test name="family">
      <string>DejaVu LGC Serif</string>
    </test>
    <edit name="family" mode="append" binding="same">
      <string>DejaVu Serif</string>
    </edit>
  </match>
  <match>
    <test name="family">
      <string>SUSE Serif</string>
    </test>
    <edit name="family" mode="append" binding="same">
      <string>DejaVu Serif</string>
    </edit>
  </match>
  <match>
    <test name="family">
      <string>Hunky Serif</string>
    </test>
    <edit name="family" mode="append" binding="same">
      <string>DejaVu Serif</string>
    </edit>
  </match>
  <match>
    <test name="family">
      <string>Olwen Serif</string>
    </test>
    <edit name="family" mode="append" binding="same">
      <string>DejaVu Serif</string>
    </edit>
  </match>
<!-- Declare DejaVu Sans Mono a valid substitute for all known Bitstream Vera
     Sans Mono derivatives which kept the original metrics -->
  <match>
    <test name="family">
      <string>Bitstream Vera Sans Mono</string>
    </test>
    <edit name="family" mode="append" binding="same">
      <string>DejaVu Sans Mono</string>
    </edit>
  </match>
  <match>
    <test name="family">
      <string>DejaVu LGC Sans Mono</string>
    </test>
    <edit name="family" mode="append" binding="same">
      <string>DejaVu Sans Mono</string>
    </edit>
  </match>
  <match>
    <test name="family">
      <string>SUSE Sans Mono</string>
    </test>
    <edit name="family" mode="append" binding="same">
      <string>DejaVu Sans Mono</string>
    </edit>
  </match>
  <match>
    <test name="family">
      <string>Bepa Mono</string>
    </test>
    <edit name="family" mode="append" binding="same">
      <string>DejaVu Sans Mono</string>
    </edit>
  </match>
  <match>
    <test name="family">
      <string>Olwen Sans Mono</string>
    </test>
    <edit name="family" mode="append" binding="same">
      <string>DejaVu Sans Mono</string>
    </edit>
  </match>
<!-- Alias generic names -->
  <match>
    <test name="family">
      <string>sans-serif</string>
    </test>
    <edit name="family" mode="prepend" binding="same">
      <string>DejaVu Sans</string>
    </edit>
  </match>
  <match>
    <test name="family">
      <string>serif</string>
    </test>
    <edit name="family" mode="prepend" binding="same">
      <string>DejaVu Serif</string>
    </edit>
  </match>
  <match>
    <test name="family">
      <string>monospace</string>
    </test>
    <edit name="family" mode="prepend" binding="same">
      <string>DejaVu Sans Mono</string>
    </edit>
  </match>
<!-- Turn off hinting at small sizes -->
  <match target="font">
    <test name="family">
      <string>DejaVu Sans</string>
    </test>
    <test name="pixelsize" compare="less">
      <double>7.5</double>
    </test>
    <edit name="hinting">
      <bool>false</bool>
    </edit>
  </match>
  <match target="font">
    <test name="family">
      <string>DejaVu Serif</string>
    </test>
    <test name="pixelsize" compare="less">
      <double>7.5</double>
    </test>
    <edit name="hinting">
      <bool>false</bool>
    </edit>
  </match>
  <match target="font">
    <test name="family">
      <string>DejaVu Sans Mono</string>
    </test>
    <test name="pixelsize" compare="less">
      <double>7.5</double>
    </test>
    <edit name="hinting">
      <bool>false</bool>
    </edit>
  </match>
</fontconfig>