<html><head><style>pre,code,address {
  margin: 0px;
}
h1,h2,h3,h4,h5,h6 {
  margin-top: 0.2em;
  margin-bottom: 0.2em;
}
ol,ul {
  margin-top: 0em;
  margin-bottom: 0em;
}
blockquote {
  margin-top: 0em;
  margin-bottom: 0em;
}
</style></head><body><div>Le jeudi 10 août 2023 à 18:30 +0200, Andreas Falkenhahn a écrit :</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>On 10.08.2023 at 17:07 Jean Abou Samra wrote:<br></div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>In vanilla Fontconfig builds, you can set the XDG_CACHE_HOME variable to modify<br></div><div>the cache location. <br></div></blockquote><div><br></div><div>Doesn't work. Looking at the code it seems like XDG_CACHE_HOME is only handled if<br></div><div>there are no cache dirs in the config:<br></div><div><br></div><div>    if (config->cacheDirs && config->cacheDirs->num == 0) { <br></div><div>         ...<br></div><div>         prefix = FcConfigXdgCacheHome ();<br></div><div>         ...<br></div><div>    }<br></div><div><br></div><div>The above if statement likely evaluates to FALSE for the MSYS2 build because<br></div><div>MSYS2 does define a cache directory but of course I don't want to use that because<br></div><div>it relies on the MSYS2 infrastructure...<br></div></blockquote><div><br></div><div><br></div><div>Looking into the MSYS2 package code at</div><div><a href="https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-fontconfig/PKGBUILD#L67">https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-fontconfig/PKGBUILD#L67</a></div><div>I see that this is indeed correct.</div><div><br></div><div>If you add <cachedir> elements to the config file, does that make a difference?</div><div><br></div><div>Not sure about the details of your setup, but if you create a "vanilla" FcConfig with FcConfigCreate(), it shouldn't have any of the default settings so you should be able to have complete control over it.</div><div><span></span></div></body></html>