2003-03-07 20:01:41 +01:00
|
|
|
/*
|
2008-08-13 09:30:23 +02:00
|
|
|
* fontconfig/doc/fcinit.fncs
|
2003-03-07 20:01:41 +01:00
|
|
|
*
|
2004-12-07 02:14:46 +01:00
|
|
|
* Copyright © 2003 Keith Packard
|
2003-03-07 20:01:41 +01:00
|
|
|
*
|
|
|
|
* Permission to use, copy, modify, distribute, and sell this software and its
|
|
|
|
* documentation for any purpose is hereby granted without fee, provided that
|
|
|
|
* the above copyright notice appear in all copies and that both that
|
|
|
|
* copyright notice and this permission notice appear in supporting
|
2010-11-10 22:45:42 +01:00
|
|
|
* documentation, and that the name of the author(s) not be used in
|
2003-03-07 20:01:41 +01:00
|
|
|
* advertising or publicity pertaining to distribution of the software without
|
2010-11-10 22:45:42 +01:00
|
|
|
* specific, written prior permission. The authors make no
|
2003-03-07 20:01:41 +01:00
|
|
|
* representations about the suitability of this software for any purpose. It
|
|
|
|
* is provided "as is" without express or implied warranty.
|
|
|
|
*
|
2009-03-12 21:00:08 +01:00
|
|
|
* THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
2003-03-07 20:01:41 +01:00
|
|
|
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
2009-03-12 21:00:08 +01:00
|
|
|
* EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
2003-03-07 20:01:41 +01:00
|
|
|
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
|
|
|
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
|
|
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
|
* PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
*/
|
|
|
|
@RET@ FcConfig *
|
|
|
|
@FUNC@ FcInitLoadConfig
|
|
|
|
@TYPE1@ void
|
|
|
|
@PURPOSE@ load configuration
|
|
|
|
@DESC@
|
|
|
|
Loads the default configuration file and returns the resulting configuration.
|
|
|
|
Does not load any font information.
|
|
|
|
@@
|
|
|
|
|
|
|
|
@RET@ FcConfig *
|
|
|
|
@FUNC@ FcInitLoadConfigAndFonts
|
|
|
|
@TYPE1@ void
|
|
|
|
@PURPOSE@ load configuration and font data
|
|
|
|
@DESC@
|
|
|
|
Loads the default configuration file and builds information about the
|
|
|
|
available fonts. Returns the resulting configuration.
|
|
|
|
@@
|
|
|
|
|
|
|
|
@RET@ FcBool
|
|
|
|
@FUNC@ FcInit
|
|
|
|
@TYPE1@ void
|
|
|
|
@PURPOSE@ initialize fontconfig library
|
|
|
|
@DESC@
|
|
|
|
Loads the default configuration file and the fonts referenced therein and
|
|
|
|
sets the default configuration to that result. Returns whether this
|
|
|
|
process succeeded or not. If the default configuration has already
|
|
|
|
been loaded, this routine does nothing and returns FcTrue.
|
|
|
|
@@
|
|
|
|
|
2003-08-15 21:45:20 +02:00
|
|
|
@RET@ void
|
|
|
|
@FUNC@ FcFini
|
|
|
|
@TYPE1@ void
|
2011-03-14 22:23:56 +01:00
|
|
|
@PURPOSE@ finalize fontconfig library
|
2003-08-15 21:45:20 +02:00
|
|
|
@DESC@
|
|
|
|
Frees all data structures allocated by previous calls to fontconfig
|
|
|
|
functions. Fontconfig returns to an uninitialized state, requiring a
|
|
|
|
new call to one of the FcInit functions before any other fontconfig
|
|
|
|
function may be called.
|
|
|
|
@@
|
|
|
|
|
2003-03-07 20:01:41 +01:00
|
|
|
@RET@ int
|
|
|
|
@FUNC@ FcGetVersion
|
|
|
|
@TYPE1@ void
|
|
|
|
@PURPOSE@ library version number
|
|
|
|
@DESC@
|
|
|
|
Returns the version number of the library.
|
|
|
|
@@
|
|
|
|
|
|
|
|
@RET@ FcBool
|
|
|
|
@FUNC@ FcInitReinitialize
|
|
|
|
@TYPE1@ void
|
|
|
|
@PURPOSE@ re-initialize library
|
|
|
|
@DESC@
|
|
|
|
Forces the default configuration file to be reloaded and resets the default
|
2007-11-13 23:58:39 +01:00
|
|
|
configuration. Returns FcFalse if the configuration cannot be reloaded (due
|
2011-03-11 23:43:42 +01:00
|
|
|
to configuration file errors, allocation failures or other issues) and leaves the
|
2007-11-13 23:58:39 +01:00
|
|
|
existing configuration unchanged. Otherwise returns FcTrue.
|
2003-03-07 20:01:41 +01:00
|
|
|
@@
|
|
|
|
|
|
|
|
@RET@ FcBool
|
|
|
|
@FUNC@ FcInitBringUptoDate
|
|
|
|
@TYPE1@ void
|
|
|
|
@PURPOSE@ reload configuration files if needed
|
|
|
|
@DESC@
|
|
|
|
Checks the rescan interval in the default configuration, checking the
|
|
|
|
configuration if the interval has passed and reloading the configuration if
|
2007-11-13 23:58:39 +01:00
|
|
|
when any changes are detected. Returns FcFalse if the configuration cannot
|
|
|
|
be reloaded (see FcInitReinitialize). Otherwise returns FcTrue.
|
2003-03-07 20:01:41 +01:00
|
|
|
@@
|