Tip: Managing fonts

Tons of fonts get installed on linux systems and that makes the font scroll list in editors or word processors painfully long. I’ve always used the font manager in kde to hide fonts or I manually deleted the fonts that I did not want. But somehow those unwanted fonts always crept back in when my back was turned. Then I found a solution using ~/.config/fontconfig/fonts.conf. Thanks to Ferdinand on the Manjaro forum.

Also see:
Whitelist and blacklist fonts.

This solution is easy to implement, can be easily modified, and can be used over and over. A benefit is the fonts are not deleted, they just don’t show up in your user session.

Edit your ~/.config/fontconfig/fonts.conf file and:

  1. Put the fonts you do not want to see in the rejectfont section
  2. Put any fonts from the above rejection groups that you might want to keep in the acceptfont section
  3. Fonts not added to the rejectfont section will not be affected.

My ~/.config/fontconfig/fonts.conf file:

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
 <!-- Local settings -->

Note: Your fonts.conf file may contain other useful stuff, that’s ok, leave it there.


Good one. A wiki entry perhaps?


That’s a nice tip!
Surely worth a wiki article.


That was awesome! Just hid three files and now my font menus are manageable. Thanks!