Some fonts installed in my system are visible by programs (gimp as our specific example) and some are not. I've had this problem in every distro (including Debian, Gentoo, Slackware, LFS) for over ten years. It seems to me an easy and obvious newb question, which is why I'm posting this here, but I've never solved it in all of this time.
My googling, now, as over ten years ago, simply says to use fc-cache. Well, if one uses a program in every permutation without results for ten years, one eventually realizes that the program, fc-cache in this case, is utterly useless.
Let's get specific: a run of fc-cache as root:
Code:
root@moonshadow:~ # fc-cache -f -v
/usr/share/fonts/OTF: caching, new cache contents: 58 fonts, 0 dirs
/usr/share/fonts/TTF: caching, new cache contents: 169 fonts, 0 dirs
/usr/share/fonts/Type1: caching, new cache contents: 64 fonts, 0 dirs
/usr/share/fonts/Speedo: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cyrillic: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/misc: caching, new cache contents: 125 fonts, 0 dirs
/root/.local/share/fonts: skipping, no such directory
/root/.fonts: skipping, no such directory
/var/cache/fontconfig: cleaning cache directory
/root/.cache/fontconfig: not cleaning non-existent cache directory
/root/.fontconfig: not cleaning non-existent cache directory
fc-cache: succeeded
But then to reveal the problem, a run of ls on the fonts directory...
Code:
root@moonshadow:~ # ls /usr/share/fonts
100dpi/ OTF/ TTF/ cantarell/ encodings/ misc/ util/
75dpi/ Speedo/ Type1/ cyrillic/ kanjistrokeorders/ plex/
root@moonshadow:~ #
Note the directories that fc-cache did not see, including plex and cantarell. What's with that?
I can run fc-cache in the plex directory and it will appear to run without error ... and still the fonts are not visible in gimp.
So now, finally, my newbie-level question... how the hell do I get all the fonts to be recognized?