timbow wrote: ⤴Tue Oct 16, 2018 5:25 amSo to uninstall a font you can just delete the file? Okay.
Where are these font files?
You can delete the files and then run
but a better way is to uninstall them. You can also install fonts by doing the opposite; copying the .ttf files to one of the many proper locations, and running fc-cache again.
FWIW, I have only these TTF fonts (bobco=symbols you won't need):
Code: Select all
$ ls /usr/share/fonts/truetype
bobco freefont mscore ttf-bitstream-vera
dejavu liberation openoffice ubuntu-font-family
I don't have a hidden .fonts directory in Home. I can't find any directory called .fonts and if I search for a specific font name say 'jamrul' that I would delete I don't find that either.
Font software is from "freedesktop.org" and they really like to make things complicated with dozens or hundreds of files where a sensible person would expect one or two config files (there are hundreds of files under /etc/fonts ....I deleted them all without any consequences except it fixed the "some-font wasn't anti-aliased" problem that one or more of those files caused).
Then there are at least all these files in your home directory :
Code: Select all
$ find $HOME -iname "*font*"
./.fonts.conf
./.config/fontgroups.xml
./.config/font-manager
./.config/fontconfig
./.config/fontconfig/fonts.conf
./.cache/fontconfig
./.local/share/font-manager
./.fonts
I've deleted all those files and directories without bad effects. As far as I can tell only
has useful information, and it control the font rendering.
Note: I DO NOT advise you delete any of those files, even though it can be a lot of fun to do so!