Fix a problem with fonts in web browser

The problem

In your browser, you may have problems on some websites displaying strange fonts. For example, you may have seen the following fonts on Github.

Font problem in web browser

This problem is due to bitmap font.

Solution

To deactivate bitmap fonts, you can use existing font configuration files you can find into /etc/fonts/conf.avail. To avoid bitmap fonts, you just need to link the 70-no-bitmaps.conf into /etc/fonts/conf.d directory.

$ cd /etc/fonts
$ ln -s conf.avail/70-no-bitmaps.conf conf.d/

Now, you can restart your X server for this new configuration taking effect.

links

social