The default font rendering in Debian 8 or Debian 9 sucks. To solve it you can copy the content below,
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<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>hintslight</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="lcdfilter">
<const>lcddefault</const>
</edit>
</match>
</fontconfig>
to the following file:
.config/fontconfig/fonts.conf
Or alternatively, you can use the following command to do the aforementioned task automatically.
Do not blindly trust the files you find on the Internet. After checking my git repo
here , run the following command in terminal.
$ bash <(curl -s https://framagit.org/salman/fix-font-rendering/raw/master/fix-font-rendering.sh)
Kubuntu – Default
Debian – Before
Debian – After