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
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!
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
How To Get Your Domain Unblocked From Facebook
How To Find A String In a Directory of Files Using Linux