libfontconfig-common-2.15.0-2 system font cache directory settings seem to be wrong
Masamichi Hosoda
trueroad@trueroad.jp
Fri Mar 8 12:53:10 GMT 2024
Hi
If I understand correctly,
the system font cache directory setting in /etc/fonts/fonts.conf
provided by libfontconfig-common-2.15.0-2 is wrong.
In /etc/fonts/fonts.conf provided by libfontconfig-common-2.13.1-2
```
<cachedir>/var/cache/fontconfig</cachedir>
```
So `fc-cache -s` creates system font cache files in `/var/cache/fontconfig`.
It is correct because `/var/cache` is a common system cache directory.
In /etc/fonts/fonts.conf provided by libfontconfig-common-2.15.0-2
```
<cachedir>LOCAL_APPDATA_FONTCONFIG_CACHE</cachedir>
```
So `fc-cache -s` creates system font cache files
in `./LOCAL_APPDATA_FONTCONFIG_CACHE`.
`LOCAL_APPDATA_FONTCONFIG_CACHE` directory is created
in the *current* directory when fc-cache.
It is wrong because it means that
processes with different current directories have
different system font cache directories,
and the caches are no longer shared.
More information about the Cygwin
mailing list