[Fontconfig] Fonts mysteriously disappearing from cache after upgrade from 75eadca -> fcb0420
Akira TAGOH
akira at tagoh.org
Tue Jul 7 06:27:10 UTC 2020
On Tue, Jul 7, 2020 at 2:32 AM Chris Down <chris at chrisdown.name> wrote:
> % fc-cat fontconfig/*.cache-7 > /dev/null
> fc-cat: Unable to load the cache: /home/cdown/.cache/fontconfig/044f197d-25f4-49b0-8119-ec1e36226cba-le64.cache-7
> fc-cat: Unable to load the cache: /home/cdown/.cache/fontconfig/07b5d327-71d4-45d0-8197-fd331927b500-le64.cache-7
> fc-cat: Unable to load the cache: /home/cdown/.cache/fontconfig/0b4a3d51-dd5c-4246-8175-28b365807af7-le64.cache-7
> fc-cat: Unable to load the cache: /home/cdown/.cache/fontconfig/1119b1bc-31c1-4f64-8e92-2986fb3ec036-le64.cache-7
> fc-cat: Unable to load the cache: /home/cdown/.cache/fontconfig/13cffcb5-638b-468a-89c6-40a1b92b47aa-le64.cache-7
> fc-cat: Unable to load the cache: /home/cdown/.cache/fontconfig/158c65c810c0d352a587f5be66058e87-le64.cache-7
> [...]
That usually happens when the targeted paths in those caches aren't
included in your fonts.conf. Were they updated caches?
You could try to inspect them directly and see which paths those caches are for.
>
> Looking in particular for Terminus shows that there is no entry for it at all
> in any loadable cache.
>
> However, I also found for many of the caches in the "good" state, fc-cat
> reported the same error, so I'm not sure what to make of that. In any case, I
> couldn't find "ter-*.pcf" entries in either the good or bad cache directories,
> presumably because in both cases it cannot load the relevant cache.
That's weird. you can't find them out from even system caches?
>
> System caches are also updated in the same way that user ones are.
>
> >Other than that, do you have any custom config on your home directory?
> >such as $HOME/.fonts.conf or $HOME/.fonts.conf.d or something under
> >$HOME/.config/fontconfig? If so, what if you remove (after backup of
> >course) or move them to another place? or if not have, will this issue
> >happen for new users?
>
> Yes, I have $HOME/.config/fontconfig/fonts.conf. Removing it doesn't appear to
> fix the situation -- until I run `fc-cache -f` Terminus font is still not
> matched by `fc-match Terminus`. After that, it's fine again.
>
> Thanks again for your help,
>
> Chris
--
Akira TAGOH
More information about the Fontconfig
mailing list