Explicit configuration of cache dir via API
I've been studying FC API and implementation in the past several days and I found no way to specify cache dir explicitly via API. This would be handy in case fontconfig is run "ad-hoc" in environments like MinGW or generally Win32. Such environments usually don't come with config file, so the "configuration" happens by means of API.
The current API has "Get" function for the subj:
FcPublic FcStrList *
FcConfigGetCacheDirs (const FcConfig *config);
I'd propose to expose currently private function:
FcPrivate FcBool
FcConfigAddCacheDir (FcConfig *config, const FcChar8 *d);
as API callable function.