dpkg new fonts get installed and usable in no time. When I add a font manually I have to use
fc-cache -f, which takes a lot of time to complete. How do I install fonts manually the dpkg way? How does dpkg make them accessible to all applications without running
How do you make fonts accessible without running
At least on my system (Arch), fonts are picked up once they are placed in a directory known to fontconfig (and the cache has been rebuilt automatically).
fc-cache -f forces a rebuild of the font cache
-f Force re-generation of apparently up-to-date cache files, overriding the timestamp checking.
But if the font cache doesn't need updated, why would you force it to be?
You can run
fc-cache without arguments instead. The Arch wiki has more suggestions:
To install fonts system-wide (available for all users), move the folder to the /usr/share/fonts/ directory. [...]
Then update the fontconfig font cache: (usually unnecessary as software using the fontconfig library do this.)
I didn't have the font Titillium Web installed:
So I downloaded it (permissive license, OFL!) and copied the ttf files to
/usr/share/fonts/TTF. I was going to run
-f) to see if the cache needed updated, but first I reran
fc-list | grep -i titi:
The gif pauses for a while before looping as I was a bit surprised that the font cache had been updated
And they had already been cached! They were available to applications, as expected. No need for
fc-cache, and definitely no need to force it with