Numbers not rendering properly

Fonts, particularly numbers, do not render properly on my system for some reason. I followed this tutorial (Improve Font Rendering - Manjaro) to improve font rendering but it didn’t help. Here’s a screenshot of the issue.

image

image

As you can see, the letters render properly but there’s some issue with number rendering. I’ve installed almost all the noto fonts but couldn’t solve this issue. Updating all the packages didn’t help either.

Add this in your ~/.fonts.conf:

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
    <match target="font">
        <edit mode="assign" name="autohint">
            <bool>false</bool>
        </edit>
    </match>
    <match target="font">
        <edit mode="assign" name="rgba">
            <const>rgb</const>
        </edit>
    </match>
    <match target="font">
        <edit mode="assign" name="hinting">
            <bool>true</bool>
        </edit>
    </match>
    <match target="font">
        <edit mode="assign" name="hintstyle">
            <const>hintfull</const>
        </edit>
    </match>
    <match target="font">
        <edit mode="assign" name="antialias">
            <bool>true</bool>
        </edit>
    </match>
</fontconfig>

Also is there any error messages when you run fc-cache?

Hey, thanks for the reply.
I added the XML to my ~/.fonts.conf then ran sudo fc-cache. There was an error about a mismatched tag, I fixed it and ran again and it finished without errors. I restarted my machine but it didn’t fix the issue

First try all the steps in this link. If this doesn’t work then create this file ~/.config/fontconfig/fonts.conf:

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<!-- ~/.config/fontconfig/fonts.conf file to configure user font access -->

<fontconfig>
    <match target="font">
        <edit mode="assign" name="rgba">
            <const>rgb</const>
        </edit>
        <!-- Should be enabled by default -->
        <edit mode="assign" name="hinting">
            <bool>true</bool>
        </edit>
        <!-- Should be disabled by default
    <edit name="autohint" mode="assign">
      <bool>false</bool>
    </edit>-->
        <!-- Should be enabled by default -->
        <edit mode="assign" name="antialias">
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="hintstyle">
            <const>hintslight</const>
        </edit>
        <edit mode="assign" name="lcdfilter">
            <const>lcddefault</const>
        </edit>
    </match>


<!--use ubuntu fonts as default. -->

<alias>
    <family>sans-serif</family>
    <prefer>
        <family>Noto Sans</family>
    </prefer>
</alias>

<alias>
    <family>serif</family>
    <prefer>
        <family>Noto Serif</family>
    </prefer>
</alias>

<alias>
    <family>monospace</family>
    <prefer>
        <family>Noto Mono</family>
    </prefer>
</alias>

</fontconfig>

Also have you done these steps:

Finally enable freetype2 infinality mode and reboot your computer.

add line to end of freetype2 config file and then rebuild fontconfig cache

sudo nano /etc/profile.d/freetype2.sh
export FREETYPE_PROPERTIES="truetype:interpreter-version=38"
sudo fc-cache -fv