FcDirCacheUnlink
3
Fontconfig &version;
FcDirCacheUnlink
Remove all caches related to dir
#include <fontconfig/fontconfig.h>
FcBool FcDirCacheUnlink
const FcChar8 *dir
FcConfig *config
Description
Scans the cache directories in config, removing any
instances of the cache file for dir. Returns FcFalse
when some internal error occurs (out of memory, etc). Errors actually
unlinking any files are ignored.
FcDirCacheValid
3
Fontconfig &version;
FcDirCacheValid
check directory cache
#include <fontconfig/fontconfig.h>
FcBool FcDirCacheValid
const FcChar8 *dir
Description
Returns FcTrue if dir has an associated valid cache
file, else returns FcFalse
FcDirCacheLoad
3
Fontconfig &version;
FcDirCacheLoad
load a directory cache
#include <fontconfig/fontconfig.h>
FcCache * FcDirCacheLoad
const FcChar8 *dir
FcConfig *config
FcChar8 **cache_file
Description
Loads the cache related to dir. If no cache file
exists, returns NULL. The name of the cache file is returned in
cache_file, unless that is NULL. See also
FcDirCacheRead.
FcDirCacheRescan
3
Fontconfig &version;
FcDirCacheRescan
Re-scan a directory cache
#include <fontconfig/fontconfig.h>
FcCache * FcDirCacheRescan
const FcChar8 *dir
FcConfig *config
Description
Re-scan directories only at dir and update the cache.
returns NULL if failed.
Since
version 2.11.1
FcDirCacheRead
3
Fontconfig &version;
FcDirCacheRead
read or construct a directory cache
#include <fontconfig/fontconfig.h>
FcCache * FcDirCacheRead
const FcChar8 *dir
FcBool force
FcConfig *config
Description
This returns a cache for dir. If
force is FcFalse, then an existing, valid cache file
will be used. Otherwise, a new cache will be created by scanning the
directory and that returned.
FcDirCacheLoadFile
3
Fontconfig &version;
FcDirCacheLoadFile
load a cache file
#include <fontconfig/fontconfig.h>
FcCache * FcDirCacheLoadFile
const FcChar8 *cache_file
struct stat *file_stat
Description
This function loads a directory cache from
cache_file. If file_stat is
non-NULL, it will be filled with the results of stat(2) on the cache file.
FcDirCacheUnload
3
Fontconfig &version;
FcDirCacheUnload
unload a cache file
#include <fontconfig/fontconfig.h>
void FcDirCacheUnload
FcCache *cache
Description
This function dereferences cache. When no other
references to it remain, all memory associated with the cache will be freed.