<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!--
  http://www.freedesktop.org/software/fontconfig/fontconfig-user.html
  vim: ft=xml:ts=4:sw=4:et
  Reminder to the load order:
  system/00..49-*.conf -> user/conf.d/ -> user/fonts.conf -> system/51..99-*.conf
-->
<fontconfig>

    <!-- Global settings -->

    <match target="font">
        <edit name="antialias">
            <bool>true</bool>
        </edit>
        <!--
        <edit name="rgba">
            <const>rgb</const>
        </edit>
        -->
        <edit name="hinting">
            <bool>true</bool>
        </edit>
        <!--
        <edit name="hintstyle">
            <const>hintmedium</const>
        </edit>
        -->
        <edit name="autohint">
            <bool>false</bool>
        </edit>
        <edit name="lcdfilter">
            <const>lcddefault</const>
        </edit>
        <edit name="embeddedbitmap">
            <bool>false</bool>
        </edit>
    </match>

    <!-- Re-enable ClearType for MS fonts -->

    <match target="font">
        <test name="family">
            <string>Cambria</string>
        </test>
        <edit name="rgba">
            <const>rgb</const>
        </edit>
    </match>

    <!-- Re-enable bitmaps for the "emoji language" -->
    <!-- (alternatively, we could only disable for Calibri etc.) -->

    <match target="font">
        <test name="lang" compare="contains">
            <string>und-zsye</string>
        </test>
        <edit name="embeddedbitmap">
            <bool>true</bool>
        </edit>
    </match>

    <match target="font">
        <test name="fontformat">
            <string>Type 1</string>
        </test>
        <edit name="hintstyle">
            <const>hintslight</const>
        </edit>
    </match>

</fontconfig>
