Ubuntu – How to remove fonts that I never use, from libreoffice and linux in general

fontslibreoffice

There are a lot of extra fonts that all seem to look alike and just annoy me in the drop down list. Is there anyway I can erase them from the system?

Best Answer

You have several methods. I can list 4...

  1. Graphical interface ===================

Firstly you can install font-manager with this command:

sudo aptitude install font-manager

You can disable (So not remove! Disabling makes them disappear for you but other users on that system will still see them) fonts from here. This is what it looks like:

enter image description here

  1. Manual removal from Ubuntu Software Center ==============

As an alternative have a search in Ubuntu Software Center for fonts and delete them from there.

  1. Manual removal as packages through command line ==============

None english fonts can be removed with this command:

sudo apt-get remove ttf-indic-fonts-core ttf-kacst-one ttf-khmeros-core ttf-lao ttf-punjabi-fonts ttf-takao-pgothic ttf-thai-tlwg ttf-unfonts-core ttf-wqy-microhei

Here is a list of all the font packages. You can add the font package name to the command above to include them for removal.

If at any time you remove a font that you want back just do a

 sudo apt-get install ttf-indic-fonts-core

And the indic fonts will be re-installed (ofc. change the package name to what you want).

  1. Manual command line removal ===========================

Besides this you can look at

/etc/fonts/fonts.conf

to see where fonts are stored. Normally this will be in 1 of these locations:

/usr/share/fonts
/usr/local/share/fonts
/home/$USER/.local/share/fonts
/home/$USER/.fonts

With admin privileges you can just remove them. They should then disappear from any location.

Related Question