Debian 9 Stretch Out-Of-the-Box Fonts

If none of the more specific forums is the right place to ask

Debian 9 Stretch Out-Of-the-Box Fonts

Postby RebelCoder » 2018-07-01 11:12

Hello.

I have been a Debian-based distro for last 2+ years. I have never used clean Debian 9, but SparkyLinux, Neptune Linux, etc.
Now I have switched to pure Debian 9, and the only thing I can't make work, are the fonts. they are horrible pout-of-the-box.

Web and Code editors have Monospace and other nice fonts by default on other Distros I have tried, but on Deb 9 they are horrible to look at. Can anyone help with this please ?

Image

Image

Regards.
Juris.
User avatar
RebelCoder
 
Posts: 5
Joined: 2018-01-30 10:49
Location: Moscow/London/Riga

Re: Debian 9 Stretch Out-Of-the-Box Fonts

Postby Head_on_a_Stick » 2018-07-01 12:00

Try this in ~/.config/fontconfig/fonts.conf:
Code: Select all
<fontconfig>
    <match target="font">
        <edit mode="assign" name="hinting" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="autohint" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="hintstyle" >
            <const>hintslight</const>
        </edit>
        <edit mode="assign" name="rgba" >
            <const>rgb</const>
        </edit>
        <edit mode="assign" name="antialias" >
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="lcdfilter">
            <const>lcddefault</const>
        </edit>
    </match>
</fontconfig>

You may prefer stronger hinting or the alternative lcdfilter patterns but the above configuration works for me© :)
Charlie don't hack
User avatar
Head_on_a_Stick
 
Posts: 7633
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Debian 9 Stretch Out-Of-the-Box Fonts

Postby RebelCoder » 2018-07-01 12:24

Amazing! Thanks so much! Will add to my Patch-After-Debian-Install.

Work perfectly fine!
User avatar
RebelCoder
 
Posts: 5
Joined: 2018-01-30 10:49
Location: Moscow/London/Riga


Return to General Questions

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable