How Can I Install a Font Globally for All Applications?

0
2
Asked By SillyPenguin42 On

I'm trying to figure out how to install a .ttf font file and have it accessible globally across all applications, including QT and GTK ones. I noticed that when I copy the font to the .fonts directory, it only seems to work with my window manager. Other applications like Firefox, VSCode, Chrome, and GUI file managers don't pick it up. What's the correct method to ensure that the font is applied everywhere?

2 Answers

Answered By MusingMeerkat21 On

If you want the font to be available system-wide for all users, you need to copy it to /usr/share/fonts/. Just run the command `sudo cp MyFont.ttf /usr/share/fonts/truetype/` and then refresh the font cache using `sudo fc-cache -fv`. This should make it accessible everywhere!

Answered By QuirkyOtter32 On

To make the font available for just your user account, place the .ttf files in $HOME/.local/share/fonts/truetype. This way, all applications you use will be able to access the font without any extra steps.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.