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

    <!-- Urdu Font config -->
    <match target="pattern">
        <test name="lang" compare="contains">
            <string>ur</string>
        </test>
        <test qual="any" name="family">
            <string>sans-serif</string>
        </test>
        <edit name="family" mode="prepend" binding="strong">
            <string>Jameel Noori Nastaleeq</string>
        </edit>
    </match>

    <match target="pattern">
        <test name="lang" compare="contains">
            <string>ur</string>
        </test>
        <test qual="any" name="family">
            <string>serif</string>
        </test>
        <edit name="family" mode="prepend" binding="strong">
            <string>Jameel Noori Nastaleeq</string>
        </edit>
    </match>

    <!-- English font config -->
    <match target="pattern">
        <test name="lang" compare="contains">
            <string>en</string>
        </test>
        <test qual="any" name="family">
            <string>sans-serif</string>
        </test>
        <edit name="family" mode="prepend" binding="strong">
            <string>HackNerdFont</string>
        </edit>
    </match>

    <match target="pattern">
        <test name="lang" compare="contains">
            <string>en</string>
        </test>
        <test qual="any" name="family">
            <string>serif</string>
        </test>
        <edit name="family" mode="prepend" binding="strong">
            <string>HackNerdFont</string>
        </edit>
    </match>

    <alias>
        <family>sans-serif</family>
        <prefer>
            <family>HackNerdFont</family>
            <family>Jameel Noori Nastaleeq</family>
        </prefer>
    </alias>

    <alias>
        <family>monospace</family>
        <prefer>
            <family>HackNerdFont</family>
            <family>Jameel Noori Nastaleeq</family>
        </prefer>
    </alias>



</fontconfig>
