How Can I Install a Font Globally for All Applications?
Asked by
8bitSunshade
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?
Answers
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.
Reply to this answer
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!
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions