50

How to delete fonts in ubuntu. I am a new ubuntu user and find it hard to delete fonts that I have installed.

I anticipate that the problem might be installing font that turns my Firefox browser turned my mail fonts to bold. I experience the same view with firefox and chrome browser. Many of the fonts turned out to be bold.!

jhen
  • 501

5 Answers5

41

An easy way to do that is using font manager. Just press Ctrl+Alt+ T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install font-manager

Once installed, run the program, highlight the fonts that you don't like, and either disable or remove them. See image below.

enter image description here

Mitch
  • 107,631
25

First, determine the font's name you want to delete, example 'Nimbus Sans L'

Then run the following command in terminal to know where it is:

$ fc-list "Nimbus Sans L"
/usr/share/fonts/type1/gsfonts/n019063l.pfb: Nimbus Sans L:style=Regular Condensed Italic
/usr/share/fonts/type1/gsfonts/n019064l.pfb: Nimbus Sans L:style=Bold Condensed Italic
/usr/share/fonts/type1/gsfonts/n019043l.pfb: Nimbus Sans L:style=Regular Condensed
/usr/share/fonts/type1/gsfonts/n019044l.pfb: Nimbus Sans L:style=Bold Condensed
/usr/share/fonts/type1/gsfonts/n019023l.pfb: Nimbus Sans L:style=Regular Italic
/usr/share/fonts/type1/gsfonts/n019024l.pfb: Nimbus Sans L:style=Bold Italic
/usr/share/fonts/type1/gsfonts/n019004l.pfb: Nimbus Sans L:style=Bold
/usr/share/fonts/type1/gsfonts/n019003l.pfb: Nimbus Sans L:style=Regular

In case you don't know the exact font name, just try fc-match -s Nimbus or fc-list |grep -i nimbus, those commands will give you a hint.

Second, delete what you wanna. Below, for example, should delete style Bold Condensed Italic of 'Nimbus Sans L':

$ sudo rm /usr/share/fonts/type1/gsfonts/n019064l.pfb

After deleting, type this command to update the font cache database:

$ fc-cache -fv

If if doesn't effect, you need to reboot the system by:

$ sudo reboot
mja
  • 998
17

You can also delete them manually.

(That can be useful in some cases, for example: if you want to use a program like conky with a thin font like Raleway Thin, but Raleway Regular was also installed, conky may sometime automatically use regular, while font-manager will not be able to tell the difference. So, the idea is to remove regular manually, etc.)

If installed with Font Viewer, they are in ~/.local/share/fonts.

Also look in ~/.fonts.

5

Ubuntu 18

Launch a file manager as sugo (e.g. sudo nautilus) and navigate to /usr/share/fonts. Browse through the opentype and especially the truetype directory, and delete fonts you don't want. (If you really dislike the fonts, press Shift+Delete for extra effect :)

Junk fonts

After deleting, run this command to update the font cache:

$ fc-cache -fv
2

If you installed the fonts with apt then you can

sudo apt remove fonts-<fontname>

You can see a list of all the fonts you installed with apt using

apt list --installed | grep ^fonts

or to see all fonts available from apt do

apt search ^fonts-