LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Clean up fonts - only system fonts wanted (https://www.linuxquestions.org/questions/linux-newbie-8/clean-up-fonts-only-system-fonts-wanted-4175665620/)

DagJNJ 12-08-2019 12:54 PM

Clean up fonts - only system fonts wanted
 
Hi,
I have got a little chaos in my fonts, and want to start over (without reinstalling).
Which fonts do I really need for the system, and perhaps for the browser?
I don't need all those fonts which seems to be more or less identical, rather use selected ones.
Where to put them I think to know, but if I delete all TTF, the system shows me a kind of type-writer font, which I don't appreciate that much either.
I'l be glad for any help, regards,
Dag

ondoho 12-09-2019 01:47 AM

Do NOT just delete the files under /usr/share/fonts!

First of all, tell your system and all apps to just use the "sans-serif", "serif" and "monospace" meta fonts.

Then search your package manager for all font packages and try to uninstall them.
It should tell you that some other package depends on some font - those fonts you should not uninstall then.
Fonts that you put in your $HOME you can just delete.

DagJNJ 12-09-2019 03:12 AM

I don'tknow how to tell the system only to use certain types of fonts.
And it seems like a monster work to go through all fonts of every application, they have accumulated over years.
If I do not delete the fonts in /usr/share/fonts, they show up in my applications, exactly what I don't want.
Of course I have a copy of /usr/share/fonts.

aus9 12-09-2019 05:50 AM

Quote:

I don'tknow how to tell the system only to use certain types of fonts
I don't use Ubuntu Mate but try section 8 of link
https://itsfoss.com/ubuntu-mate-customization/

Quote:

If I do not delete the fonts in /usr/share/fonts, they show up in my applications, exactly what I don't want.
Because you need to delete the actual packages installed

delete fonts using either software boutique or command line

command line would start by listing all installed fonts.....then you choose...
I recommend you keep dejavu which normally supply true type fonts that ondoho has mentioned

Code:

dpkg -l | grep font
then if GUI for boutique does not work....
Code:

sudo apt remove --purge <font-package-name>
where <font-package-name> is from the results of first command

Normally that first link if for system wide font defaults.

third party fonts will tend to "default" to what it finds..... if it can no longer find a certain font that you may have accidently chosen...or deliberately.

rtmistler 12-09-2019 06:13 AM

I think the advice given by both Ondoho and aus9 will be helpful.

I'm not sure I'd personally advise with removing fonts, but instead just opting for the fonts you wish to use in your applications and desktop.

When you say you have chaos, what exactly do you mean?

I mean if you installed some number of fonts to try them out and now you no longer wish to see them? Or is it instead that you selected different fonts for each application or the desktop and now you wish to return to the defaults? We can help you to fix either of those fairly easily.

DagJNJ 12-09-2019 12:45 PM

To aus9,
I will look at that, seems very helpful.
To rtmistler,
right, tested different fonts I have downloaded and installed them with Mate Fontviewer, in some cases.
On my laptop though I made /home/dagj/.fonts and copied the fonts in there, which also worked (better in my opinion, easy to maintain).
But what I really want to achieve, is to get rid of all that fonts which are more or less duplicates, changing in in typeface rather minimal.
But no way to deinstall with that application.

JeremyBoden 12-09-2019 07:00 PM

Whenever I install a Linux, I always seem to get loads of fonts.

So I go through purging packages of fonts for non-English scripts - such as Indian, Thai, Japanese etc.
I do keep any UTF8 packages, since these are useful.

Uninstalling fonts via package manager will cause your font cache to be rebuilt properly.


All times are GMT -5. The time now is 05:41 AM.