fcinit.fncs revision a6844aab
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 102c393a42Smrg * documentation, and that the name of Keith Packard not be used in 112c393a42Smrg * advertising or publicity pertaining to distribution of the software without 122c393a42Smrg * specific, written prior permission. Keith Packard makes 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 */ 242c393a42Smrg@RET@ FcConfig * 252c393a42Smrg@FUNC@ FcInitLoadConfig 262c393a42Smrg@TYPE1@ void 272c393a42Smrg@PURPOSE@ load configuration 282c393a42Smrg@DESC@ 292c393a42SmrgLoads the default configuration file and returns the resulting configuration. 302c393a42SmrgDoes not load any font information. 312c393a42Smrg@@ 322c393a42Smrg 332c393a42Smrg@RET@ FcConfig * 342c393a42Smrg@FUNC@ FcInitLoadConfigAndFonts 352c393a42Smrg@TYPE1@ void 362c393a42Smrg@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 422c393a42Smrg@RET@ FcBool 432c393a42Smrg@FUNC@ FcInit 442c393a42Smrg@TYPE1@ void 452c393a42Smrg@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 532c393a42Smrg@RET@ void 542c393a42Smrg@FUNC@ FcFini 552c393a42Smrg@TYPE1@ void 562c393a42Smrg@PURPOSE@ finalize fonconfig 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 642c393a42Smrg@RET@ int 652c393a42Smrg@FUNC@ FcGetVersion 662c393a42Smrg@TYPE1@ void 672c393a42Smrg@PURPOSE@ library version number 682c393a42Smrg@DESC@ 692c393a42SmrgReturns the version number of the library. 702c393a42Smrg@@ 712c393a42Smrg 722c393a42Smrg@RET@ FcBool 732c393a42Smrg@FUNC@ FcInitReinitialize 742c393a42Smrg@TYPE1@ void 752c393a42Smrg@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 792c393a42Smrgto config file errors, allocation failures or other issues) and leaves the 802c393a42Smrgexisting configuration unchanged. Otherwise returns FcTrue. 812c393a42Smrg@@ 822c393a42Smrg 832c393a42Smrg@RET@ FcBool 842c393a42Smrg@FUNC@ FcInitBringUptoDate 852c393a42Smrg@TYPE1@ void 862c393a42Smrg@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