Blame doc/fccache.fncs

Packit 352660
/*
Packit 352660
 * Copyright © 2007 Keith Packard
Packit 352660
 *
Packit 352660
 * Permission to use, copy, modify, distribute, and sell this software and its
Packit 352660
 * documentation for any purpose is hereby granted without fee, provided that
Packit 352660
 * the above copyright notice appear in all copies and that both that
Packit 352660
 * copyright notice and this permission notice appear in supporting
Packit 352660
 * documentation, and that the name of the author(s) not be used in
Packit 352660
 * advertising or publicity pertaining to distribution of the software without
Packit 352660
 * specific, written prior permission.  The authors make no
Packit 352660
 * representations about the suitability of this software for any purpose.  It
Packit 352660
 * is provided "as is" without express or implied warranty.
Packit 352660
 *
Packit 352660
 * THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
Packit 352660
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
Packit 352660
 * EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
Packit 352660
 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
Packit 352660
 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
Packit 352660
 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
Packit 352660
 * PERFORMANCE OF THIS SOFTWARE.
Packit 352660
 */
Packit 352660
 
Packit 352660
@RET@           const FcChar8 *
Packit 352660
@FUNC@          FcCacheDir
Packit 352660
@TYPE1@		const FcCache *			@ARG1@		cache
Packit 352660
@PURPOSE@	Return directory of <parameter>cache</parameter>
Packit 352660
@DESC@
Packit 352660
This function returns the directory from which the cache was constructed.
Packit 352660
@@
Packit 352660
Packit 352660
@RET@		FcFontSet *
Packit 352660
@FUNC@		FcCacheCopySet
Packit 352660
@TYPE1@		const FcCache *			@ARG1@		cache
Packit 352660
@PURPOSE@	Returns a copy of the fontset from <parameter>cache</parameter>
Packit 352660
@DESC@
Packit 352660
The returned fontset contains each of the font patterns from
Packit 352660
<parameter>cache</parameter>. This fontset may be modified, but the patterns
Packit 352660
from the cache are read-only.
Packit 352660
@@
Packit 352660
Packit 352660
@RET@		const FcChar8 *
Packit 352660
@FUNC@		FcCacheSubdir
Packit 352660
@TYPE1@		const FcCache *			@ARG1@		cache
Packit 352660
@TYPE2@		int				@ARG2@		i
Packit 352660
@PURPOSE@	Return the <parameter>i</parameter>'th subdirectory.
Packit 352660
@DESC@
Packit 352660
The set of subdirectories stored in a cache file are indexed by this
Packit 352660
function, <parameter>i</parameter> should range from 0 to
Packit 352660
<parameter>n</parameter>-1, where <parameter>n</parameter> is the return
Packit 352660
value from FcCacheNumSubdir.
Packit 352660
@@
Packit 352660
Packit 352660
@RET@		int
Packit 352660
@FUNC@		FcCacheNumSubdir
Packit 352660
@TYPE1@		const FcCache *			@ARG1@		cache
Packit 352660
@PURPOSE@	Return the number of subdirectories in <parameter>cache</parameter>.
Packit 352660
@DESC@
Packit 352660
This returns the total number of subdirectories in the cache.
Packit 352660
@@
Packit 352660
Packit 352660
@RET@		int
Packit 352660
@FUNC@		FcCacheNumFont
Packit 352660
@TYPE1@		const FcCache *			@ARG1@		cache
Packit 352660
@PURPOSE@	Returns the number of fonts in <parameter>cache</parameter>.
Packit 352660
@DESC@
Packit 352660
This returns the number of fonts which would be included in the return from
Packit 352660
FcCacheCopySet.
Packit 352660
@@
Packit 352660
Packit 352660
@RET@		FcBool
Packit 352660
@FUNC@		FcDirCacheClean
Packit 352660
@TYPE1@		const FcChar8 *			@ARG1@		cache_dir
Packit 352660
@TYPE2@		FcBool				@ARG2@		verbose
Packit 352660
@PURPOSE@	Clean up a cache directory
Packit 352660
@DESC@
Packit 352660
This tries to clean up the cache directory of <parameter>cache_dir</parameter>.
Packit 352660
This returns FcTrue if the operation is successfully complete. otherwise FcFalse.
Packit 352660
@SINCE@		2.9.91
Packit 352660
@@
Packit 352660
Packit 352660
@RET@		void
Packit 352660
@FUNC@		FcCacheCreateTagFile
Packit 352660
@TYPE1@		const FcConfig *		@ARG1@		config
Packit 352660
@PURPOSE@	Create CACHEDIR.TAG at cache directory.
Packit 352660
@DESC@
Packit 352660
This tries to create CACHEDIR.TAG file at the cache directory registered
Packit 352660
to <parameter>config</parameter>.
Packit 352660
@SINCE@		2.9.91
Packit 352660
@@
Packit 352660
Packit 352660
@RET@		FcBool
Packit 352660
@FUNC@		FcDirCacheCreateUUID
Packit 352660
@TYPE1@		FcChar8 *			@ARG1@		dir
Packit 352660
@TYPE2@		FcBool				@ARG2@		force
Packit 352660
@TYPE3@		FcConfig *			@ARG3@		config
Packit 352660
@PURPOSE@	Create .uuid file at a directory
Packit 352660
@DESC@
Packit 352660
This is to create .uuid file containing an UUID at a font directory of
Packit 352660
<parameter>dir</parameter>.
Packit 352660
The UUID will be used to identify the font directory and is used to determine
Packit 352660
the cache filename if available.
Packit 352660
@SINCE@		2.12.92
Packit 352660
@@
Packit 352660
Packit 352660
@RET@		FcBool
Packit 352660
@FUNC@		FcDirCacheDeleteUUID
Packit 352660
@TYPE1@		const FcChar8 *			@ARG1@		dir
Packit 352660
@TYPE2@		FcConfig *			@ARG2@		config
Packit 352660
@PURPOSE@	Delete .uuid file
Packit 352660
@DESC@
Packit 352660
This is to delete .uuid file containing an UUID at a font directory of
Packit 352660
<parameter>dir</parameter>.
Packit 352660
@SINCE@		2.13.1
Packit 352660
@@