Fontconfig bad font relpacement.

Greetings everyone. I’m currently running openSuse with KDE 4.10.3 on my laptop, and I am very rigorous about typography (an I am great lover of good monospaced fonts), I just found on the net a great monospaced font named ‘Aurulent Sans Mono’ created by Stephen G. Hartke which is free in the sense of freedom, and I downloaded and installed it, but it lacks of slashed zero or doted zero which for me is crucial since a pass lot of time writing and reading code (I am currently attending a 2nd year in CS in Portugal), so I created one and released the modifications and they can be found here https://bitbucket.org/eatg75/fonts/. I went and configured /etc/fonts/local.conf (because I want root to use the same configuration), but for some reason I cannot understand fontconfig is replacing the font I wanted wich is ‘Aurulent Sans Mono SZ’ with some other variable with font.

Can someone help me find out the error?
Below there is my configuration file.


<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/fonts.conf file to configure system font access -->
<fontconfig>
    <!-- more custom fonts available to everyone -->
    <dir>/opt/my-precious-fonts</dir>

    <!-- replace this monospace font for the system's default monospace -->    
    <match target="pattern">
        <test qual="any" name="family">
            <string>consolas</string>
        </test>
        <edit name="family" mode="assign" binding="same">
            <string>monospace</string>
        </edit>
    </match>

    <!-- replace this monospace font for the system's default monospace -->    
      <match target="pattern">
        <test qual="any" name="family">
            <string>bitstream vera sans mono</string>
        </test>
        <edit name="family" mode="assign" binding="same">
            <string>monospace</string>
        </edit>
    </match>

    <!-- replace this monospace font for the system's default monospace -->    
       <match target="pattern">
        <test qual="any" name="family">
            <string>monaco</string>
        </test>
        <edit name="family" mode="assign" binding="same">
            <string>monospace</string>
        </edit>
    </match>


    <!-- replace this monospace font for the system's default monospace -->    
      <match target="pattern">
        <test qual="any" name="family">
            <string>droid sans mono</string>
        </test>
        <edit name="family" mode="assign" binding="same">
            <string>monospace</string>
        </edit>
    </match>

    <!-- make this font the default monospace font, NOTE: this instruction should be set after the above lines! -->
      <match target="pattern">
        <test qual="any" name="family">
            <string>monospace</string>
        </test>
        <edit name="family" mode="assign" binding="same">
            <string>aurulent sans mono sz</string>
        </edit>
    </match>
    
    <!-- make applications use sans-serif fonts instead of serif one's -->
       <match target="pattern">
        <test qual="any" name="family">
            <string>serif</string>
        </test>
        <edit name="family" mode="assign" binding="same">
            <string>sans-serif</string>
        </edit>
    </match>

    <!-- make this font the default sans-serif font -->
       <match target="pattern">
        <test qual="any" name="family">
            <string>sans-serif</string>
        </test>
        <edit name="family" mode="assign" binding="same">
            <string>cantarell</string>
        </edit>
    </match>

    <match target="font">
      <edit name="hinting" mode="assign">
        <bool>true</bool>
      </edit>

      <edit name="hintstyle" mode="assign">
        <const>hintslight</const>
      </edit>
      
      <edit name="autohint" mode="assign">
        <bool>false</bool>
      </edit>

      <edit name="antialias" mode="assign">
        <bool>true</bool>
      </edit>

      <edit name="rgba" mode="assign">
        <const>rgb</const>
      </edit>

      <edit name="lcdfilter" mode="assign">
        <const>lcddefault</const>
      </edit>
    </match>
</fontconfig>



I am not expert on this field, and you should take someone else’s advice on this, but I just want to mention that when i want to install new fonts, I use the “Font Management” in “systemsettings”. The font gets installed and I just choose the font from the “Application Appearance” in “systemsettings”.

By the way I do programming and these days I love Consolas (MS Windows) and Inconsolata (Free and open similar to Consolas) fonts, which are great for programming :slight_smile: