<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <match>
        <test qual="any" name="family"><string>sans-serif</string></test>
        <edit name="family" mode="prepend" binding="strong">
            <string>Noto Sans</string>
            <string>Noto Color Emoji</string>
            <string>FontAwesome 5 Pro Light</string>
        </edit>

        <edit name="hintstyle" mode="assign"><const>hintnone</const></edit>
        <edit mode="assign" name="hinting"><bool>false</bool></edit>
    </match>

    <match>
        <test qual="any" name="family"><string>serif</string></test>
        <edit name="family" mode="prepend" binding="strong">
            <string>Noto Serif</string>
            <string>Noto Color Emoji</string>
            <string>FontAwesome 5 Pro Light</string>
        </edit>
    </match>

    <match>
        <test qual="any" name="family"><string>monospace</string></test>
        <edit name="family" mode="prepend" binding="strong">
            <string>Source Code Pro</string>
            <string>Noto Color Emoji</string>
            <string>FontAwesome 5 Pro Light</string>
        </edit>
    </match>

    <match>
        <test qual="all" name="family" compare="eq"><string>Noto Sans</string></test>
        <edit name="hintstyle" mode="assign"><const>hintnone</const></edit>
    </match>

    <match>
        <test qual="all" name="family" compare="eq"><string>Source Code Pro</string></test>
        <edit name="antialias" mode="assign_replace"><bool>false</bool></edit>
        <edit name="hintstyle" mode="assign_replace"><const>hintfull</const></edit>
        <edit name="lcdfilter" mode="assign_replace"><const>lcddefault</const></edit>
        <edit name="rgba" mode="assign_replace"><const>rgb</const></edit>
    </match>

    <alias>
        <family>SF Mono</family>
        <accept>
            <family>monospace</family>
        </accept>
    </alias>

    <match>
        <edit name="antialias" mode="assign"><bool>true</bool></edit>
        <edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
        <edit name="rgba" mode="assign"><const>rgb</const></edit>
    </match>
</fontconfig>
