1/* 2 * fontconfig/doc/fcinit.fncs 3 * 4 * Copyright © 2003 Keith Packard 5 * 6 * Permission to use, copy, modify, distribute, and sell this software and its 7 * documentation for any purpose is hereby granted without fee, provided that 8 * the above copyright notice appear in all copies and that both that 9 * copyright notice and this permission notice appear in supporting 10 * documentation, and that the name of the author(s) not be used in 11 * advertising or publicity pertaining to distribution of the software without 12 * specific, written prior permission. The authors make no 13 * representations about the suitability of this software for any purpose. It 14 * is provided "as is" without express or implied warranty. 15 * 16 * THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 17 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 18 * EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR 19 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 20 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 21 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 22 * PERFORMANCE OF THIS SOFTWARE. 23 */ 24@RET@ FcConfig * 25@FUNC@ FcInitLoadConfig 26@TYPE1@ void 27@PURPOSE@ load configuration 28@DESC@ 29Loads the default configuration file and returns the resulting configuration. 30Does not load any font information. 31@@ 32 33@RET@ FcConfig * 34@FUNC@ FcInitLoadConfigAndFonts 35@TYPE1@ void 36@PURPOSE@ load configuration and font data 37@DESC@ 38Loads the default configuration file and builds information about the 39available fonts. Returns the resulting configuration. 40@@ 41 42@RET@ FcBool 43@FUNC@ FcInit 44@TYPE1@ void 45@PURPOSE@ initialize fontconfig library 46@DESC@ 47Loads the default configuration file and the fonts referenced therein and 48sets the default configuration to that result. Returns whether this 49process succeeded or not. If the default configuration has already 50been loaded, this routine does nothing and returns FcTrue. 51@@ 52 53@RET@ void 54@FUNC@ FcFini 55@TYPE1@ void 56@PURPOSE@ finalize fontconfig library 57@DESC@ 58Frees all data structures allocated by previous calls to fontconfig 59functions. Fontconfig returns to an uninitialized state, requiring a 60new call to one of the FcInit functions before any other fontconfig 61function may be called. 62@@ 63 64@RET@ int 65@FUNC@ FcGetVersion 66@TYPE1@ void 67@PURPOSE@ library version number 68@DESC@ 69Returns the version number of the library. 70@@ 71 72@RET@ FcBool 73@FUNC@ FcInitReinitialize 74@TYPE1@ void 75@PURPOSE@ re-initialize library 76@DESC@ 77Forces the default configuration file to be reloaded and resets the default 78configuration. Returns FcFalse if the configuration cannot be reloaded (due 79to configuration file errors, allocation failures or other issues) and leaves the 80existing configuration unchanged. Otherwise returns FcTrue. 81@@ 82 83@RET@ FcBool 84@FUNC@ FcInitBringUptoDate 85@TYPE1@ void 86@PURPOSE@ reload configuration files if needed 87@DESC@ 88Checks the rescan interval in the default configuration, checking the 89configuration if the interval has passed and reloading the configuration if 90when any changes are detected. Returns FcFalse if the configuration cannot 91be reloaded (see FcInitReinitialize). Otherwise returns FcTrue. 92@@ 93