2 * Copyright © 2007 Keith Packard
4 * Permission to use, copy, modify, distribute, and sell this software and its
5 * documentation for any purpose is hereby granted without fee, provided that
6 * the above copyright notice appear in all copies and that both that
7 * copyright notice and this permission notice appear in supporting
8 * documentation, and that the name of the author(s) not be used in
9 * advertising or publicity pertaining to distribution of the software without
10 * specific, written prior permission. The authors make no
11 * representations about the suitability of this software for any purpose. It
12 * is provided "as is" without express or implied warranty.
14 * THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16 * EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20 * PERFORMANCE OF THIS SOFTWARE.
25 @TYPE1@ const FcCache * @ARG1@ cache
26 @PURPOSE@ Return directory of <parameter>cache</parameter>
28 This function returns the directory from which the cache was constructed.
33 @TYPE1@ const FcCache * @ARG1@ cache
34 @PURPOSE@ Returns a copy of the fontset from <parameter>cache</parameter>
36 The returned fontset contains each of the font patterns from
37 <parameter>cache</parameter>. This fontset may be modified, but the patterns
38 from the cache are read-only.
43 @TYPE1@ const FcCache * @ARG1@ cache
45 @PURPOSE@ Return the <parameter>i</parameter>'th subdirectory.
47 The set of subdirectories stored in a cache file are indexed by this
48 function, <parameter>i</parameter> should range from 0 to
49 <parameter>n</parameter>-1, where <parameter>n</parameter> is the return
50 value from FcCacheNumSubdir.
54 @FUNC@ FcCacheNumSubdir
55 @TYPE1@ const FcCache * @ARG1@ cache
56 @PURPOSE@ Return the number of subdirectories in <parameter>cache</parameter>.
58 This returns the total number of subdirectories in the cache.
63 @TYPE1@ const FcCache * @ARG1@ cache
64 @PURPOSE@ Returns the number of fonts in <parameter>cache</parameter>.
66 This returns the number of fonts which would be included in the return from
71 @FUNC@ FcDirCacheClean
72 @TYPE1@ const FcChar8 * @ARG1@ cache_dir
73 @TYPE2@ FcBool @ARG2@ verbose
75 This tries to clean up the cache directory of <parameter>cache_dir</parameter>.
76 This returns FcTrue if the operation is successfully complete. otherwise FcFalse.
81 @FUNC@ FcCacheCreateTagFile
82 @TYPE1@ const FcConfig * @ARG1@ config
83 @PURPOSE@ Create CACHEDIR.TAG at cache directory.
85 This tries to create CACHEDIR.TAG file at the cache directory registered
86 to <parameter>config</parameter>.