Skip to content

Latest commit

 

History

History
68 lines (58 loc) · 1.77 KB

fontconfig.org

File metadata and controls

68 lines (58 loc) · 1.77 KB

fontconfig

This is my ~/.config/fontconfig/fonts.conf configuration file.

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

  <match target="font">
    <edit name="rgba" mode="assign"><const>rgb</const></edit>
    <edit name="antialias" mode="assign"><bool>true</bool></edit>
    <edit name="hinting" mode="assign"><bool>true</bool></edit>
    <edit name="hintstyle" mode="assign"><const>hintslight</const></edit>
    <edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
  </match>

  <alias>
    <family>serif</family>
    <prefer>
      <family>DejaVu Serif</family>
      <family>Bitstream Vera Serif</family>
      <family>Times New Roman</family>
    </prefer>
  </alias>

  <alias>
    <family>sans-serif</family>
    <prefer>
      <family>DejaVu Sans</family>
      <family>Ubuntu</family>
      <family>Droid Sans</family>
      <family>Helvetica</family>
    </prefer>
  </alias>

  <alias>
    <family>monospace</family>
    <prefer>
      <family>DejaVu Sans Mono</family>
      <family>Inconsolata</family>
      <family>Bitstream Vera Sans Mono</family>
    </prefer>
  </alias>

<!-- Reject bitmap fonts in favour of Truetype, Postscript, etc. -->
 <selectfont>
    <rejectfont>
      <pattern>
        <patelt name="scalable">
          <bool>false</bool>
        </patelt>
      </pattern>
    </rejectfont>
  </selectfont>

<!-- Substitute truetype fonts for bitmap ones -->
 <match target="font">
         <edit name="prefer_outline"><bool>true</bool></edit>
 </match>

<!-- Prevent Gnome from using embedded bitmaps in fonts like Calibri -->
 <match target="font">
	 <edit name="embeddedbitmap" mode="assign"><bool>false</bool></edit>
 </match>

</fontconfig>