12c393a42Smrg/*
2a6844aabSmrg * fontconfig/doc/fcinit.fncs
32c393a42Smrg *
42c393a42Smrg * Copyright © 2003 Keith Packard
52c393a42Smrg *
62c393a42Smrg * Permission to use, copy, modify, distribute, and sell this software and its
72c393a42Smrg * documentation for any purpose is hereby granted without fee, provided that
82c393a42Smrg * the above copyright notice appear in all copies and that both that
92c393a42Smrg * copyright notice and this permission notice appear in supporting
10ca08ab68Smrg * documentation, and that the name of the author(s) not be used in
112c393a42Smrg * advertising or publicity pertaining to distribution of the software without
12ca08ab68Smrg * specific, written prior permission.  The authors make no
132c393a42Smrg * representations about the suitability of this software for any purpose.  It
142c393a42Smrg * is provided "as is" without express or implied warranty.
152c393a42Smrg *
16a6844aabSmrg * THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
172c393a42Smrg * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
18a6844aabSmrg * EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
192c393a42Smrg * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
202c393a42Smrg * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
212c393a42Smrg * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
222c393a42Smrg * PERFORMANCE OF THIS SOFTWARE.
232c393a42Smrg */
241cc69409Smrg@RET@           FcConfig *
251cc69409Smrg@FUNC@          FcInitLoadConfig
261cc69409Smrg@TYPE1@         void
271cc69409Smrg@PURPOSE@       load configuration
282c393a42Smrg@DESC@
292c393a42SmrgLoads the default configuration file and returns the resulting configuration.
302c393a42SmrgDoes not load any font information.
312c393a42Smrg@@
322c393a42Smrg
331cc69409Smrg@RET@           FcConfig *
341cc69409Smrg@FUNC@          FcInitLoadConfigAndFonts
351cc69409Smrg@TYPE1@         void
361cc69409Smrg@PURPOSE@       load configuration and font data
372c393a42Smrg@DESC@
382c393a42SmrgLoads the default configuration file and builds information about the
392c393a42Smrgavailable fonts.  Returns the resulting configuration.
402c393a42Smrg@@
412c393a42Smrg
421cc69409Smrg@RET@           FcBool
431cc69409Smrg@FUNC@          FcInit
441cc69409Smrg@TYPE1@         void
451cc69409Smrg@PURPOSE@       initialize fontconfig library
462c393a42Smrg@DESC@
472c393a42SmrgLoads the default configuration file and the fonts referenced therein and
482c393a42Smrgsets the default configuration to that result.  Returns whether this
492c393a42Smrgprocess succeeded or not.  If the default configuration has already
502c393a42Smrgbeen loaded, this routine does nothing and returns FcTrue.
512c393a42Smrg@@
522c393a42Smrg
531cc69409Smrg@RET@           void
541cc69409Smrg@FUNC@          FcFini
551cc69409Smrg@TYPE1@         void
561cc69409Smrg@PURPOSE@       finalize fontconfig library
572c393a42Smrg@DESC@
582c393a42SmrgFrees all data structures allocated by previous calls to fontconfig
592c393a42Smrgfunctions. Fontconfig returns to an uninitialized state, requiring a
602c393a42Smrgnew call to one of the FcInit functions before any other fontconfig
612c393a42Smrgfunction may be called.
622c393a42Smrg@@
632c393a42Smrg
641cc69409Smrg@RET@           int
651cc69409Smrg@FUNC@          FcGetVersion
661cc69409Smrg@TYPE1@         void
671cc69409Smrg@PURPOSE@       library version number
682c393a42Smrg@DESC@
692c393a42SmrgReturns the version number of the library.
702c393a42Smrg@@
712c393a42Smrg
721cc69409Smrg@RET@           FcBool
731cc69409Smrg@FUNC@          FcInitReinitialize
741cc69409Smrg@TYPE1@         void
751cc69409Smrg@PURPOSE@       re-initialize library
762c393a42Smrg@DESC@
772c393a42SmrgForces the default configuration file to be reloaded and resets the default
782c393a42Smrgconfiguration. Returns FcFalse if the configuration cannot be reloaded (due
79ca08ab68Smrgto configuration file errors, allocation failures or other issues) and leaves the
802c393a42Smrgexisting configuration unchanged. Otherwise returns FcTrue.
812c393a42Smrg@@
822c393a42Smrg
831cc69409Smrg@RET@           FcBool
841cc69409Smrg@FUNC@          FcInitBringUptoDate
851cc69409Smrg@TYPE1@         void
861cc69409Smrg@PURPOSE@       reload configuration files if needed
872c393a42Smrg@DESC@
882c393a42SmrgChecks the rescan interval in the default configuration, checking the
892c393a42Smrgconfiguration if the interval has passed and reloading the configuration if
902c393a42Smrgwhen any changes are detected. Returns FcFalse if the configuration cannot
912c393a42Smrgbe reloaded (see FcInitReinitialize). Otherwise returns FcTrue.
922c393a42Smrg@@
93