<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Fontconfig Developers Reference, Version 2.9.0
 </TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"></HEAD
><BODY
CLASS="ARTICLE"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="ARTICLE"
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="TITLE"
><A
NAME="AEN1"
>Fontconfig Developers Reference, Version 2.9.0</A
></H1
><H3
CLASS="AUTHOR"
><A
NAME="AEN4"
>Keith Packard</A
></H3
><DIV
CLASS="AFFILIATION"
><SPAN
CLASS="ORGNAME"
>				HP Cambridge Research Lab
			<BR></SPAN
></DIV
><HR></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
>1. <A
HREF="#AEN16"
>DESCRIPTION</A
></DT
><DT
>2. <A
HREF="#AEN19"
>FUNCTIONAL OVERVIEW</A
></DT
><DD
><DL
><DT
>2.1. <A
HREF="#AEN22"
>FONT CONFIGURATION</A
></DT
><DT
>2.2. <A
HREF="#AEN27"
>FONT PROPERTIES</A
></DT
></DL
></DD
><DT
>3. <A
HREF="#AEN31"
>Datatypes</A
></DT
><DD
><DL
><DT
>3.1. <A
HREF="#AEN34"
>FcChar8, FcChar16, FcChar32, FcBool</A
></DT
><DT
>3.2. <A
HREF="#AEN37"
>FcMatrix</A
></DT
><DT
>3.3. <A
HREF="#AEN41"
>FcCharSet</A
></DT
><DT
>3.4. <A
HREF="#AEN44"
>FcLangSet</A
></DT
><DT
>3.5. <A
HREF="#AEN47"
>FcLangResult</A
></DT
><DT
>3.6. <A
HREF="#AEN50"
>FcType</A
></DT
><DT
>3.7. <A
HREF="#AEN53"
>FcValue</A
></DT
><DT
>3.8. <A
HREF="#AEN58"
>FcPattern</A
></DT
><DT
>3.9. <A
HREF="#AEN61"
>FcFontSet</A
></DT
><DT
>3.10. <A
HREF="#AEN65"
>FcStrSet, FcStrList</A
></DT
><DT
>3.11. <A
HREF="#AEN68"
>FcObjectSet</A
></DT
><DT
>3.12. <A
HREF="#AEN72"
>FcObjectType</A
></DT
><DT
>3.13. <A
HREF="#AEN76"
>FcConstant</A
></DT
><DT
>3.14. <A
HREF="#AEN80"
>FcBlanks</A
></DT
><DT
>3.15. <A
HREF="#AEN83"
>FcFileCache</A
></DT
><DT
>3.16. <A
HREF="#AEN86"
>FcConfig</A
></DT
><DT
>3.17. <A
HREF="#AEN89"
>FcSetName</A
></DT
><DT
>3.18. <A
HREF="#AEN92"
>FcResult</A
></DT
><DT
>3.19. <A
HREF="#AEN96"
>FcAtomic</A
></DT
><DT
>3.20. <A
HREF="#AEN99"
>FcCache</A
></DT
></DL
></DD
><DT
>4. <A
HREF="#AEN102"
>FUNCTIONS</A
></DT
><DD
><DL
><DT
>4.1. <A
HREF="#AEN105"
>Initialization</A
></DT
><DD
><DL
><DT
><A
HREF="#FCINITLOADCONFIG"
>FcInitLoadConfig</A
>&nbsp;--&nbsp;load configuration</DT
><DT
><A
HREF="#FCINITLOADCONFIGANDFONTS"
>FcInitLoadConfigAndFonts</A
>&nbsp;--&nbsp;load configuration and font data</DT
><DT
><A
HREF="#FCINIT"
>FcInit</A
>&nbsp;--&nbsp;initialize fontconfig library</DT
><DT
><A
HREF="#FCFINI"
>FcFini</A
>&nbsp;--&nbsp;finalize fontconfig library</DT
><DT
><A
HREF="#FCGETVERSION"
>FcGetVersion</A
>&nbsp;--&nbsp;library version number</DT
><DT
><A
HREF="#FCINITREINITIALIZE"
>FcInitReinitialize</A
>&nbsp;--&nbsp;re-initialize library</DT
><DT
><A
HREF="#FCINITBRINGUPTODATE"
>FcInitBringUptoDate</A
>&nbsp;--&nbsp;reload configuration files if needed</DT
></DL
></DD
><DT
>4.2. <A
HREF="#AEN255"
>FcPattern</A
></DT
><DD
><DL
><DT
><A
HREF="#FCPATTERNCREATE"
>FcPatternCreate</A
>&nbsp;--&nbsp;Create a pattern</DT
><DT
><A
HREF="#FCPATTERNDUPLICATE"
>FcPatternDuplicate</A
>&nbsp;--&nbsp;Copy a pattern</DT
><DT
><A
HREF="#FCPATTERNREFERENCE"
>FcPatternReference</A
>&nbsp;--&nbsp;Increment pattern reference count</DT
><DT
><A
HREF="#FCPATTERNDESTROY"
>FcPatternDestroy</A
>&nbsp;--&nbsp;Destroy a pattern</DT
><DT
><A
HREF="#FCPATTERNEQUAL"
>FcPatternEqual</A
>&nbsp;--&nbsp;Compare patterns</DT
><DT
><A
HREF="#FCPATTERNEQUALSUBSET"
>FcPatternEqualSubset</A
>&nbsp;--&nbsp;Compare portions of patterns</DT
><DT
><A
HREF="#FCPATTERNFILTER"
>FcPatternFilter</A
>&nbsp;--&nbsp;Filter the objects of pattern</DT
><DT
><A
HREF="#FCPATTERNHASH"
>FcPatternHash</A
>&nbsp;--&nbsp;Compute a pattern hash value</DT
><DT
><A
HREF="#FCPATTERNADD"
>FcPatternAdd</A
>&nbsp;--&nbsp;Add a value to a pattern</DT
><DT
><A
HREF="#FCPATTERNADDWEAK"
>FcPatternAddWeak</A
>&nbsp;--&nbsp;Add a value to a pattern with weak binding</DT
><DT
><A
HREF="#FCPATTERNADD-TYPE"
>FcPatternAdd-Type</A
>&nbsp;--&nbsp;Add a typed value to a pattern</DT
><DT
><A
HREF="#FCPATTERNGET"
>FcPatternGet</A
>&nbsp;--&nbsp;Return a value from a pattern</DT
><DT
><A
HREF="#FCPATTERNGET-TYPE"
>FcPatternGet-Type</A
>&nbsp;--&nbsp;Return a typed value from a pattern</DT
><DT
><A
HREF="#FCPATTERNBUILD"
>FcPatternBuild</A
>&nbsp;--&nbsp;Create patterns from arguments</DT
><DT
><A
HREF="#FCPATTERNDEL"
>FcPatternDel</A
>&nbsp;--&nbsp;Delete a property from a pattern</DT
><DT
><A
HREF="#FCPATTERNREMOVE"
>FcPatternRemove</A
>&nbsp;--&nbsp;Remove one object of the specified type from the pattern</DT
><DT
><A
HREF="#FCPATTERNPRINT"
>FcPatternPrint</A
>&nbsp;--&nbsp;Print a pattern for debugging</DT
><DT
><A
HREF="#FCDEFAULTSUBSTITUTE"
>FcDefaultSubstitute</A
>&nbsp;--&nbsp;Perform default substitutions in a pattern</DT
><DT
><A
HREF="#FCNAMEPARSE"
>FcNameParse</A
>&nbsp;--&nbsp;Parse a pattern string</DT
><DT
><A
HREF="#FCNAMEUNPARSE"
>FcNameUnparse</A
>&nbsp;--&nbsp;Convert a pattern back into a string that can be parsed</DT
><DT
><A
HREF="#FCPATTERNFORMAT"
>FcPatternFormat</A
>&nbsp;--&nbsp;Format a pattern into a string according to a format specifier</DT
></DL
></DD
><DT
>4.3. <A
HREF="#AEN1056"
>FcFontSet</A
></DT
><DD
><DL
><DT
><A
HREF="#FCFONTSETCREATE"
>FcFontSetCreate</A
>&nbsp;--&nbsp;Create a font set</DT
><DT
><A
HREF="#FCFONTSETDESTROY"
>FcFontSetDestroy</A
>&nbsp;--&nbsp;Destroy a font set</DT
><DT
><A
HREF="#FCFONTSETADD"
>FcFontSetAdd</A
>&nbsp;--&nbsp;Add to a font set</DT
><DT
><A
HREF="#FCFONTSETLIST"
>FcFontSetList</A
>&nbsp;--&nbsp;List fonts from a set of font sets</DT
><DT
><A
HREF="#FCFONTSETMATCH"
>FcFontSetMatch</A
>&nbsp;--&nbsp;Return the best font from a set of font sets</DT
><DT
><A
HREF="#FCFONTSETPRINT"
>FcFontSetPrint</A
>&nbsp;--&nbsp;Print a set of patterns to stdout</DT
><DT
><A
HREF="#FCFONTSETSORT"
>FcFontSetSort</A
>&nbsp;--&nbsp;Add to a font set</DT
><DT
><A
HREF="#FCFONTSETSORTDESTROY"
>FcFontSetSortDestroy</A
>&nbsp;--&nbsp;DEPRECATED destroy a font set</DT
></DL
></DD
><DT
>4.4. <A
HREF="#AEN1283"
>FcObjectSet</A
></DT
><DD
><DL
><DT
><A
HREF="#FCOBJECTSETCREATE"
>FcObjectSetCreate</A
>&nbsp;--&nbsp;Create an object set</DT
><DT
><A
HREF="#FCOBJECTSETADD"
>FcObjectSetAdd</A
>&nbsp;--&nbsp;Add to an object set</DT
><DT
><A
HREF="#FCOBJECTSETDESTROY"
>FcObjectSetDestroy</A
>&nbsp;--&nbsp;Destroy an object set</DT
><DT
><A
HREF="#FCOBJECTSETBUILD"
>FcObjectSetBuild</A
>&nbsp;--&nbsp;Build object set from args</DT
></DL
></DD
><DT
>4.5. <A
HREF="#AEN1393"
>FreeType specific functions</A
></DT
><DD
><DL
><DT
><A
HREF="#FCFREETYPECHARINDEX"
>FcFreeTypeCharIndex</A
>&nbsp;--&nbsp;map Unicode to glyph id</DT
><DT
><A
HREF="#FCFREETYPECHARSET"
>FcFreeTypeCharSet</A
>&nbsp;--&nbsp;compute Unicode coverage</DT
><DT
><A
HREF="#FCFREETYPECHARSETANDSPACING"
>FcFreeTypeCharSetAndSpacing</A
>&nbsp;--&nbsp;compute Unicode coverage and spacing type</DT
><DT
><A
HREF="#FCFREETYPEQUERY"
>FcFreeTypeQuery</A
>&nbsp;--&nbsp;compute pattern from font file (and index)</DT
><DT
><A
HREF="#FCFREETYPEQUERYFACE"
>FcFreeTypeQueryFace</A
>&nbsp;--&nbsp;compute pattern from FT_Face</DT
></DL
></DD
><DT
>4.6. <A
HREF="#AEN1522"
>FcValue</A
></DT
><DD
><DL
><DT
><A
HREF="#FCVALUEDESTROY"
>FcValueDestroy</A
>&nbsp;--&nbsp;Free a value</DT
><DT
><A
HREF="#FCVALUESAVE"
>FcValueSave</A
>&nbsp;--&nbsp;Copy a value</DT
><DT
><A
HREF="#FCVALUEPRINT"
>FcValuePrint</A
>&nbsp;--&nbsp;Print a value to stdout</DT
><DT
><A
HREF="#FCVALUEEQUAL"
>FcValueEqual</A
>&nbsp;--&nbsp;Test two values for equality</DT
></DL
></DD
><DT
>4.7. <A
HREF="#AEN1616"
>FcCharSet</A
></DT
><DD
><DL
><DT
><A
HREF="#FCCHARSETCREATE"
>FcCharSetCreate</A
>&nbsp;--&nbsp;Create an empty character set</DT
><DT
><A
HREF="#FCCHARSETDESTROY"
>FcCharSetDestroy</A
>&nbsp;--&nbsp;Destroy a character set</DT
><DT
><A
HREF="#FCCHARSETADDCHAR"
>FcCharSetAddChar</A
>&nbsp;--&nbsp;Add a character to a charset</DT
><DT
><A
HREF="#FCCHARSETDELCHAR"
>FcCharSetDelChar</A
>&nbsp;--&nbsp;Add a character to a charset</DT
><DT
><A
HREF="#FCCHARSETCOPY"
>FcCharSetCopy</A
>&nbsp;--&nbsp;Copy a charset</DT
><DT
><A
HREF="#FCCHARSETEQUAL"
>FcCharSetEqual</A
>&nbsp;--&nbsp;Compare two charsets</DT
><DT
><A
HREF="#FCCHARSETINTERSECT"
>FcCharSetIntersect</A
>&nbsp;--&nbsp;Intersect charsets</DT
><DT
><A
HREF="#FCCHARSETUNION"
>FcCharSetUnion</A
>&nbsp;--&nbsp;Add charsets</DT
><DT
><A
HREF="#FCCHARSETSUBTRACT"
>FcCharSetSubtract</A
>&nbsp;--&nbsp;Subtract charsets</DT
><DT
><A
HREF="#FCCHARSETMERGE"
>FcCharSetMerge</A
>&nbsp;--&nbsp;Merge charsets</DT
><DT
><A
HREF="#FCCHARSETHASCHAR"
>FcCharSetHasChar</A
>&nbsp;--&nbsp;Check a charset for a char</DT
><DT
><A
HREF="#FCCHARSETCOUNT"
>FcCharSetCount</A
>&nbsp;--&nbsp;Count entries in a charset</DT
><DT
><A
HREF="#FCCHARSETINTERSECTCOUNT"
>FcCharSetIntersectCount</A
>&nbsp;--&nbsp;Intersect and count charsets</DT
><DT
><A
HREF="#FCCHARSETSUBTRACTCOUNT"
>FcCharSetSubtractCount</A
>&nbsp;--&nbsp;Subtract and count charsets</DT
><DT
><A
HREF="#FCCHARSETISSUBSET"
>FcCharSetIsSubset</A
>&nbsp;--&nbsp;Test for charset inclusion</DT
><DT
><A
HREF="#FCCHARSETFIRSTPAGE"
>FcCharSetFirstPage</A
>&nbsp;--&nbsp;Start enumerating charset contents</DT
><DT
><A
HREF="#FCCHARSETNEXTPAGE"
>FcCharSetNextPage</A
>&nbsp;--&nbsp;Continue enumerating charset contents</DT
><DT
><A
HREF="#FCCHARSETCOVERAGE"
>FcCharSetCoverage</A
>&nbsp;--&nbsp;DEPRECATED return coverage for a Unicode page</DT
><DT
><A
HREF="#FCCHARSETNEW"
>FcCharSetNew</A
>&nbsp;--&nbsp;DEPRECATED alias for FcCharSetCreate</DT
></DL
></DD
><DT
>4.8. <A
HREF="#AEN2094"
>FcLangSet</A
></DT
><DD
><DL
><DT
><A
HREF="#FCLANGSETCREATE"
>FcLangSetCreate</A
>&nbsp;--&nbsp;create a langset object</DT
><DT
><A
HREF="#FCLANGSETDESTROY"
>FcLangSetDestroy</A
>&nbsp;--&nbsp;destroy a langset object</DT
><DT
><A
HREF="#FCLANGSETCOPY"
>FcLangSetCopy</A
>&nbsp;--&nbsp;copy a langset object</DT
><DT
><A
HREF="#FCLANGSETADD"
>FcLangSetAdd</A
>&nbsp;--&nbsp;add a language to a langset</DT
><DT
><A
HREF="#FCLANGSETDEL"
>FcLangSetDel</A
>&nbsp;--&nbsp;delete a language from a langset</DT
><DT
><A
HREF="#FCLANGSETUNION"
>FcLangSetUnion</A
>&nbsp;--&nbsp;Add langsets</DT
><DT
><A
HREF="#FCLANGSETSUBTRACT"
>FcLangSetSubtract</A
>&nbsp;--&nbsp;Subtract langsets</DT
><DT
><A
HREF="#FCLANGSETCOMPARE"
>FcLangSetCompare</A
>&nbsp;--&nbsp;compare language sets</DT
><DT
><A
HREF="#FCLANGSETCONTAINS"
>FcLangSetContains</A
>&nbsp;--&nbsp;check langset subset relation</DT
><DT
><A
HREF="#FCLANGSETEQUAL"
>FcLangSetEqual</A
>&nbsp;--&nbsp;test for matching langsets</DT
><DT
><A
HREF="#FCLANGSETHASH"
>FcLangSetHash</A
>&nbsp;--&nbsp;return a hash value for a langset</DT
><DT
><A
HREF="#FCLANGSETHASLANG"
>FcLangSetHasLang</A
>&nbsp;--&nbsp;test langset for language support</DT
><DT
><A
HREF="#FCLANGSETGETLANGS"
>FcLangSetGetLangs</A
>&nbsp;--&nbsp;get the list of languages in the langset</DT
><DT
><A
HREF="#FCGETLANGS"
>FcGetLangs</A
>&nbsp;--&nbsp;Get list of languages</DT
><DT
><A
HREF="#FCLANGGETCHARSET"
>FcLangGetCharSet</A
>&nbsp;--&nbsp;Get character map for a language</DT
></DL
></DD
><DT
>4.9. <A
HREF="#AEN2464"
>FcMatrix</A
></DT
><DD
><DL
><DT
><A
HREF="#FCMATRIXINIT"
>FcMatrixInit</A
>&nbsp;--&nbsp;initialize an FcMatrix structure</DT
><DT
><A
HREF="#FCMATRIXCOPY"
>FcMatrixCopy</A
>&nbsp;--&nbsp;Copy a matrix</DT
><DT
><A
HREF="#FCMATRIXEQUAL"
>FcMatrixEqual</A
>&nbsp;--&nbsp;Compare two matrices</DT
><DT
><A
HREF="#FCMATRIXMULTIPLY"
>FcMatrixMultiply</A
>&nbsp;--&nbsp;Multiply matrices</DT
><DT
><A
HREF="#FCMATRIXROTATE"
>FcMatrixRotate</A
>&nbsp;--&nbsp;Rotate a matrix</DT
><DT
><A
HREF="#FCMATRIXSCALE"
>FcMatrixScale</A
>&nbsp;--&nbsp;Scale a matrix</DT
><DT
><A
HREF="#FCMATRIXSHEAR"
>FcMatrixShear</A
>&nbsp;--&nbsp;Shear a matrix</DT
></DL
></DD
><DT
>4.10. <A
HREF="#AEN2658"
>FcConfig</A
></DT
><DD
><DL
><DT
><A
HREF="#FCCONFIGCREATE"
>FcConfigCreate</A
>&nbsp;--&nbsp;Create a configuration</DT
><DT
><A
HREF="#FCCONFIGREFERENCE"
>FcConfigReference</A
>&nbsp;--&nbsp;Increment config reference count</DT
><DT
><A
HREF="#FCCONFIGDESTROY"
>FcConfigDestroy</A
>&nbsp;--&nbsp;Destroy a configuration</DT
><DT
><A
HREF="#FCCONFIGSETCURRENT"
>FcConfigSetCurrent</A
>&nbsp;--&nbsp;Set configuration as default</DT
><DT
><A
HREF="#FCCONFIGGETCURRENT"
>FcConfigGetCurrent</A
>&nbsp;--&nbsp;Return current configuration</DT
><DT
><A
HREF="#FCCONFIGUPTODATE"
>FcConfigUptoDate</A
>&nbsp;--&nbsp;Check timestamps on config files</DT
><DT
><A
HREF="#FCCONFIGHOME"
>FcConfigHome</A
>&nbsp;--&nbsp;return the current home directory.</DT
><DT
><A
HREF="#FCCONFIGENABLEHOME"
>FcConfigEnableHome</A
>&nbsp;--&nbsp;controls use of the home directory.</DT
><DT
><A
HREF="#FCCONFIGBUILDFONTS"
>FcConfigBuildFonts</A
>&nbsp;--&nbsp;Build font database</DT
><DT
><A
HREF="#FCCONFIGGETCONFIGDIRS"
>FcConfigGetConfigDirs</A
>&nbsp;--&nbsp;Get config directories</DT
><DT
><A
HREF="#FCCONFIGGETFONTDIRS"
>FcConfigGetFontDirs</A
>&nbsp;--&nbsp;Get font directories</DT
><DT
><A
HREF="#FCCONFIGGETCONFIGFILES"
>FcConfigGetConfigFiles</A
>&nbsp;--&nbsp;Get config files</DT
><DT
><A
HREF="#FCCONFIGGETCACHE"
>FcConfigGetCache</A
>&nbsp;--&nbsp;DEPRECATED used to return per-user cache filename</DT
><DT
><A
HREF="#FCCONFIGGETCACHEDIRS"
>FcConfigGetCacheDirs</A
>&nbsp;--&nbsp;return the list of directories searched for cache files</DT
><DT
><A
HREF="#FCCONFIGGETFONTS"
>FcConfigGetFonts</A
>&nbsp;--&nbsp;Get config font set</DT
><DT
><A
HREF="#FCCONFIGGETBLANKS"
>FcConfigGetBlanks</A
>&nbsp;--&nbsp;Get config blanks</DT
><DT
><A
HREF="#FCCONFIGGETRESCANINTERVAL"
>FcConfigGetRescanInterval</A
>&nbsp;--&nbsp;Get config rescan interval</DT
><DT
><A
HREF="#FCCONFIGSETRESCANINTERVAL"
>FcConfigSetRescanInterval</A
>&nbsp;--&nbsp;Set config rescan interval</DT
><DT
><A
HREF="#FCCONFIGAPPFONTADDFILE"
>FcConfigAppFontAddFile</A
>&nbsp;--&nbsp;Add font file to font database</DT
><DT
><A
HREF="#FCCONFIGAPPFONTADDDIR"
>FcConfigAppFontAddDir</A
>&nbsp;--&nbsp;Add fonts from directory to font database</DT
><DT
><A
HREF="#FCCONFIGAPPFONTCLEAR"
>FcConfigAppFontClear</A
>&nbsp;--&nbsp;Remove all app fonts from font database</DT
><DT
><A
HREF="#FCCONFIGSUBSTITUTEWITHPAT"
>FcConfigSubstituteWithPat</A
>&nbsp;--&nbsp;Execute substitutions</DT
><DT
><A
HREF="#FCCONFIGSUBSTITUTE"
>FcConfigSubstitute</A
>&nbsp;--&nbsp;Execute substitutions</DT
><DT
><A
HREF="#FCFONTMATCH"
>FcFontMatch</A
>&nbsp;--&nbsp;Return best font</DT
><DT
><A
HREF="#FCFONTSORT"
>FcFontSort</A
>&nbsp;--&nbsp;Return list of matching fonts</DT
><DT
><A
HREF="#FCFONTRENDERPREPARE"
>FcFontRenderPrepare</A
>&nbsp;--&nbsp;Prepare pattern for loading font file</DT
><DT
><A
HREF="#FCFONTLIST"
>FcFontList</A
>&nbsp;--&nbsp;List fonts</DT
><DT
><A
HREF="#FCCONFIGFILENAME"
>FcConfigFilename</A
>&nbsp;--&nbsp;Find a config file</DT
><DT
><A
HREF="#FCCONFIGPARSEANDLOAD"
>FcConfigParseAndLoad</A
>&nbsp;--&nbsp;load a configuration file</DT
></DL
></DD
><DT
>4.11. <A
HREF="#AEN3371"
>FcObjectType</A
></DT
><DD
><DL
><DT
><A
HREF="#FCNAMEREGISTEROBJECTTYPES"
>FcNameRegisterObjectTypes</A
>&nbsp;--&nbsp;Register object types</DT
><DT
><A
HREF="#FCNAMEUNREGISTEROBJECTTYPES"
>FcNameUnregisterObjectTypes</A
>&nbsp;--&nbsp;Unregister object types</DT
><DT
><A
HREF="#FCNAMEGETOBJECTTYPE"
>FcNameGetObjectType</A
>&nbsp;--&nbsp;Lookup an object type</DT
></DL
></DD
><DT
>4.12. <A
HREF="#AEN3444"
>FcConstant</A
></DT
><DD
><DL
><DT
><A
HREF="#FCNAMEREGISTERCONSTANTS"
>FcNameRegisterConstants</A
>&nbsp;--&nbsp;Register symbolic constants</DT
><DT
><A
HREF="#FCNAMEUNREGISTERCONSTANTS"
>FcNameUnregisterConstants</A
>&nbsp;--&nbsp;Unregister symbolic constants</DT
><DT
><A
HREF="#FCNAMEGETCONSTANT"
>FcNameGetConstant</A
>&nbsp;--&nbsp;Lookup symbolic constant</DT
><DT
><A
HREF="#FCNAMECONSTANT"
>FcNameConstant</A
>&nbsp;--&nbsp;Get the value for a symbolic constant</DT
></DL
></DD
><DT
>4.13. <A
HREF="#AEN3542"
>FcBlanks</A
></DT
><DD
><DL
><DT
><A
HREF="#FCBLANKSCREATE"
>FcBlanksCreate</A
>&nbsp;--&nbsp;Create an FcBlanks</DT
><DT
><A
HREF="#FCBLANKSDESTROY"
>FcBlanksDestroy</A
>&nbsp;--&nbsp;Destroy and FcBlanks</DT
><DT
><A
HREF="#FCBLANKSADD"
>FcBlanksAdd</A
>&nbsp;--&nbsp;Add a character to an FcBlanks</DT
><DT
><A
HREF="#FCBLANKSISMEMBER"
>FcBlanksIsMember</A
>&nbsp;--&nbsp;Query membership in an FcBlanks</DT
></DL
></DD
><DT
>4.14. <A
HREF="#AEN3633"
>FcAtomic</A
></DT
><DD
><DL
><DT
><A
HREF="#FCATOMICCREATE"
>FcAtomicCreate</A
>&nbsp;--&nbsp;create an FcAtomic object</DT
><DT
><A
HREF="#FCATOMICLOCK"
>FcAtomicLock</A
>&nbsp;--&nbsp;lock a file</DT
><DT
><A
HREF="#FCATOMICNEWFILE"
>FcAtomicNewFile</A
>&nbsp;--&nbsp;return new temporary file name</DT
><DT
><A
HREF="#FCATOMICORIGFILE"
>FcAtomicOrigFile</A
>&nbsp;--&nbsp;return original file name</DT
><DT
><A
HREF="#FCATOMICREPLACEORIG"
>FcAtomicReplaceOrig</A
>&nbsp;--&nbsp;replace original with new</DT
><DT
><A
HREF="#FCATOMICDELETENEW"
>FcAtomicDeleteNew</A
>&nbsp;--&nbsp;delete new file</DT
><DT
><A
HREF="#FCATOMICUNLOCK"
>FcAtomicUnlock</A
>&nbsp;--&nbsp;unlock a file</DT
><DT
><A
HREF="#FCATOMICDESTROY"
>FcAtomicDestroy</A
>&nbsp;--&nbsp;destroy an FcAtomic object</DT
></DL
></DD
><DT
>4.15. <A
HREF="#AEN3810"
>File and Directory routines</A
></DT
><DD
><DL
><DT
><A
HREF="#FCFILESCAN"
>FcFileScan</A
>&nbsp;--&nbsp;scan a font file</DT
><DT
><A
HREF="#FCFILEISDIR"
>FcFileIsDir</A
>&nbsp;--&nbsp;check whether a file is a directory</DT
><DT
><A
HREF="#FCDIRSCAN"
>FcDirScan</A
>&nbsp;--&nbsp;scan a font directory without caching it</DT
><DT
><A
HREF="#FCDIRSAVE"
>FcDirSave</A
>&nbsp;--&nbsp;DEPRECATED: formerly used to save a directory cache</DT
><DT
><A
HREF="#FCDIRCACHEUNLINK"
>FcDirCacheUnlink</A
>&nbsp;--&nbsp;Remove all caches related to <CODE
CLASS="PARAMETER"
>dir</CODE
></DT
><DT
><A
HREF="#FCDIRCACHEVALID"
>FcDirCacheValid</A
>&nbsp;--&nbsp;check directory cache</DT
><DT
><A
HREF="#FCDIRCACHELOAD"
>FcDirCacheLoad</A
>&nbsp;--&nbsp;load a directory cache</DT
><DT
><A
HREF="#FCDIRCACHEREAD"
>FcDirCacheRead</A
>&nbsp;--&nbsp;read or construct a directory cache</DT
><DT
><A
HREF="#FCDIRCACHELOADFILE"
>FcDirCacheLoadFile</A
>&nbsp;--&nbsp;load a cache file</DT
><DT
><A
HREF="#FCDIRCACHEUNLOAD"
>FcDirCacheUnload</A
>&nbsp;--&nbsp;unload a cache file</DT
></DL
></DD
><DT
>4.16. <A
HREF="#AEN4083"
>FcCache routines</A
></DT
><DD
><DL
><DT
><A
HREF="#FCCACHEDIR"
>FcCacheDir</A
>&nbsp;--&nbsp;Return directory of <CODE
CLASS="PARAMETER"
>cache</CODE
></DT
><DT
><A
HREF="#FCCACHECOPYSET"
>FcCacheCopySet</A
>&nbsp;--&nbsp;Returns a copy of the fontset from <CODE
CLASS="PARAMETER"
>cache</CODE
></DT
><DT
><A
HREF="#FCCACHESUBDIR"
>FcCacheSubdir</A
>&nbsp;--&nbsp;Return the <CODE
CLASS="PARAMETER"
>i</CODE
>'th subdirectory.</DT
><DT
><A
HREF="#FCCACHENUMSUBDIR"
>FcCacheNumSubdir</A
>&nbsp;--&nbsp;Return the number of subdirectories in <CODE
CLASS="PARAMETER"
>cache</CODE
>.</DT
><DT
><A
HREF="#FCCACHENUMFONT"
>FcCacheNumFont</A
>&nbsp;--&nbsp;Returns the number of fonts in <CODE
CLASS="PARAMETER"
>cache</CODE
>.</DT
></DL
></DD
><DT
>4.17. <A
HREF="#AEN4202"
>FcStrSet and FcStrList</A
></DT
><DD
><DL
><DT
><A
HREF="#FCSTRSETCREATE"
>FcStrSetCreate</A
>&nbsp;--&nbsp;create a string set</DT
><DT
><A
HREF="#FCSTRSETMEMBER"
>FcStrSetMember</A
>&nbsp;--&nbsp;check set for membership</DT
><DT
><A
HREF="#FCSTRSETEQUAL"
>FcStrSetEqual</A
>&nbsp;--&nbsp;check sets for equality</DT
><DT
><A
HREF="#FCSTRSETADD"
>FcStrSetAdd</A
>&nbsp;--&nbsp;add to a string set</DT
><DT
><A
HREF="#FCSTRSETADDFILENAME"
>FcStrSetAddFilename</A
>&nbsp;--&nbsp;add a filename to a string set</DT
><DT
><A
HREF="#FCSTRSETDEL"
>FcStrSetDel</A
>&nbsp;--&nbsp;delete from a string set</DT
><DT
><A
HREF="#FCSTRSETDESTROY"
>FcStrSetDestroy</A
>&nbsp;--&nbsp;destroy a string set</DT
><DT
><A
HREF="#FCSTRLISTCREATE"
>FcStrListCreate</A
>&nbsp;--&nbsp;create a string iterator</DT
><DT
><A
HREF="#FCSTRLISTNEXT"
>FcStrListNext</A
>&nbsp;--&nbsp;get next string in iteration</DT
><DT
><A
HREF="#FCSTRLISTDONE"
>FcStrListDone</A
>&nbsp;--&nbsp;destroy a string iterator</DT
></DL
></DD
><DT
>4.18. <A
HREF="#AEN4440"
>String utilities</A
></DT
><DD
><DL
><DT
><A
HREF="#FCUTF8TOUCS4"
>FcUtf8ToUcs4</A
>&nbsp;--&nbsp;convert UTF-8 to UCS4</DT
><DT
><A
HREF="#FCUCS4TOUTF8"
>FcUcs4ToUtf8</A
>&nbsp;--&nbsp;convert UCS4 to UTF-8</DT
><DT
><A
HREF="#FCUTF8LEN"
>FcUtf8Len</A
>&nbsp;--&nbsp;count UTF-8 encoded chars</DT
><DT
><A
HREF="#FCUTF16TOUCS4"
>FcUtf16ToUcs4</A
>&nbsp;--&nbsp;convert UTF-16 to UCS4</DT
><DT
><A
HREF="#FCUTF16LEN"
>FcUtf16Len</A
>&nbsp;--&nbsp;count UTF-16 encoded chars</DT
><DT
><A
HREF="#FCISLOWER"
>FcIsLower</A
>&nbsp;--&nbsp;check for lower case ASCII character</DT
><DT
><A
HREF="#FCISUPPER"
>FcIsUpper</A
>&nbsp;--&nbsp;check for upper case ASCII character</DT
><DT
><A
HREF="#FCTOLOWER"
>FcToLower</A
>&nbsp;--&nbsp;convert upper case ASCII to lower case</DT
><DT
><A
HREF="#FCSTRCOPY"
>FcStrCopy</A
>&nbsp;--&nbsp;duplicate a string</DT
><DT
><A
HREF="#FCSTRDOWNCASE"
>FcStrDowncase</A
>&nbsp;--&nbsp;create a lower case translation of a string</DT
><DT
><A
HREF="#FCSTRCOPYFILENAME"
>FcStrCopyFilename</A
>&nbsp;--&nbsp;create a complete path from a filename</DT
><DT
><A
HREF="#FCSTRCMP"
>FcStrCmp</A
>&nbsp;--&nbsp;compare UTF-8 strings</DT
><DT
><A
HREF="#FCSTRCMPIGNORECASE"
>FcStrCmpIgnoreCase</A
>&nbsp;--&nbsp;compare UTF-8 strings ignoring case</DT
><DT
><A
HREF="#FCSTRSTR"
>FcStrStr</A
>&nbsp;--&nbsp;locate UTF-8 substring</DT
><DT
><A
HREF="#FCSTRSTRIGNORECASE"
>FcStrStrIgnoreCase</A
>&nbsp;--&nbsp;locate UTF-8 substring ignoring ASCII case</DT
><DT
><A
HREF="#FCSTRPLUS"
>FcStrPlus</A
>&nbsp;--&nbsp;concatenate two strings</DT
><DT
><A
HREF="#FCSTRFREE"
>FcStrFree</A
>&nbsp;--&nbsp;free a string</DT
><DT
><A
HREF="#FCSTRDIRNAME"
>FcStrDirname</A
>&nbsp;--&nbsp;directory part of filename</DT
><DT
><A
HREF="#FCSTRBASENAME"
>FcStrBasename</A
>&nbsp;--&nbsp;last component of filename</DT
></DL
></DD
></DL
></DD
></DL
></DIV
><DIV
CLASS="SECT1"
><H2
CLASS="SECT1"
><A
NAME="AEN16"
>1. DESCRIPTION</A
></H2
><P
>Fontconfig is a library designed to provide system-wide font configuration,
customization and application access.
  </P
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="AEN19"
>2. FUNCTIONAL OVERVIEW</A
></H2
><P
>Fontconfig contains two essential modules, the configuration module which
builds an internal configuration from XML files and the matching module
which accepts font patterns and returns the nearest matching font.
  </P
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN22"
>2.1. FONT CONFIGURATION</A
></H3
><P
>The configuration module consists of the FcConfig datatype, libexpat and
FcConfigParse which walks over an XML tree and amends a configuration with
data found within.  From an external perspective, configuration of the
library consists of generating a valid XML tree and feeding that to
FcConfigParse.  The only other mechanism provided to applications for
changing the running configuration is to add fonts and directories to the
list of application-provided font files.  
    </P
><P
>The intent is to make font configurations relatively static, and shared by
as many applications as possible.  It is hoped that this will lead to more
stable font selection when passing names from one application to another.
XML was chosen as a configuration file format because it provides a format
which is easy for external agents to edit while retaining the correct
structure and syntax.
    </P
><P
>Font configuration is separate from font matching; applications needing to
do their own matching can access the available fonts from the library and
perform private matching.  The intent is to permit applications to pick and
choose appropriate functionality from the library instead of forcing them to
choose between this library and a private configuration mechanism.  The hope
is that this will ensure that configuration of fonts for all applications
can be centralized in one place.  Centralizing font configuration will
simplify and regularize font installation and customization.
    </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN27"
>2.2. FONT PROPERTIES</A
></H3
><P
>While font patterns may contain essentially any properties, there are some
well known properties with associated types.  Fontconfig uses some of these
properties for font matching and font completion.  Others are provided as a
convenience for the application's rendering mechanism.
    </P
><PRE
CLASS="PROGRAMLISTING"
>                 Property Definitions

    Property       C Preprocessor Symbol  Type    Description
    ----------------------------------------------------
    family         FC_FAMILY              String  Font family names
    familylang     FC_FAMILYLANG          String  Language corresponding to
                                                  each family name
    style          FC_STYLE               String  Font style. Overrides weight
                                                  and slant
    stylelang      FC_STYLELANG           String  Language corresponding to
                                                  each style name
    fullname       FC_FULLNAME            String  Font face full name where
                                                  different from family and
                                                  family + style
    fullnamelang   FC_FULLNAMELANG        String  Language corresponding to
                                                  each fullname
    slant          FC_SLANT               Int     Italic, oblique or roman
    weight         FC_WEIGHT              Int     Light, medium, demibold,
                                                  bold or black
    size           FC_SIZE                Double  Point size
    width          FC_WIDTH               Int     Condensed, normal or expanded
    aspect         FC_ASPECT              Double  Stretches glyphs horizontally
                                                  before hinting
    pixelsize      FC_PIXEL_SIZE          Double  Pixel size
    spacing        FC_SPACING             Int     Proportional, dual-width,
                                                  monospace or charcell
    foundry        FC_FOUNDRY             String  Font foundry name
    antialias      FC_ANTIALIAS           Bool    Whether glyphs can be
                                                  antialiased
    hinting        FC_HINTING             Bool    Whether the rasterizer should
                                                  use hinting
    hintstyle      FC_HINT_STYLE          Int     Automatic hinting style
    verticallayout FC_VERTICAL_LAYOUT     Bool    Use vertical layout
    autohint       FC_AUTOHINT            Bool    Use autohinter instead of
                                                  normal hinter
    globaladvance  FC_GLOBAL_ADVANCE      Bool    Use font global advance data
    file           FC_FILE                String  The filename holding the font
    index          FC_INDEX               Int     The index of the font within
                                                  the file
    ftface         FC_FT_FACE             FT_Face Use the specified FreeType
                                                  face object
    rasterizer     FC_RASTERIZER          String  Which rasterizer is in use
    outline        FC_OUTLINE             Bool    Whether the glyphs are outlines
    scalable       FC_SCALABLE            Bool    Whether glyphs can be scaled
    scale          FC_SCALE               Double  Scale factor for point-&#62;pixel
                                                  conversions
    dpi            FC_DPI                 Double  Target dots per inch
    rgba           FC_RGBA                Int     unknown, rgb, bgr, vrgb,
                                                  vbgr, none - subpixel geometry
    lcdfilter      FC_LCD_FILTER          Int     Type of LCD filter
    minspace       FC_MINSPACE            Bool    Eliminate leading from line
                                                  spacing
    charset        FC_CHARSET             CharSet Unicode chars encoded by
                                                  the font
    lang           FC_LANG                LangSet Set of RFC-3066-style
                                                  languages this font supports
    fontversion    FC_FONTVERSION         Int     Version number of the font
    capability     FC_CAPABILITY          String  List of layout capabilities in
                                                  the font
    embolden       FC_EMBOLDEN            Bool    Rasterizer should
                                                  synthetically embolden the font
    </PRE
></DIV
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="AEN31"
>3. Datatypes</A
></H2
><P
>Fontconfig uses abstract data types to hide internal implementation details
for most data structures.  A few structures are exposed where appropriate.
  </P
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN34"
>3.1. FcChar8, FcChar16, FcChar32, FcBool</A
></H3
><P
>These are primitive data types; the FcChar* types hold precisely the number
of bits stated (if supported by the C implementation).  FcBool holds
one of two C preprocessor symbols: FcFalse or FcTrue.
    </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN37"
>3.2. FcMatrix</A
></H3
><P
>An FcMatrix holds an affine transformation, usually used to reshape glyphs.
A small set of matrix operations are provided to manipulate these.
    <PRE
CLASS="PROGRAMLISTING"
>        typedef struct _FcMatrix {
                double xx, xy, yx, yy;
        } FcMatrix;
    </PRE
>
    </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN41"
>3.3. FcCharSet</A
></H3
><P
>An FcCharSet is an abstract type that holds the set of encoded Unicode chars
in a font.  Operations to build and compare these sets are provided.
    </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN44"
>3.4. FcLangSet</A
></H3
><P
>An FcLangSet is an abstract type that holds the set of languages supported
by a font.  Operations to build and compare these sets are provided. These
are computed for a font based on orthographic information built into the
fontconfig library. Fontconfig has orthographies for all of the ISO 639-1
languages except for MS, NA, PA, PS, QU, RN, RW, SD, SG, SN, SU and ZA. If
you have orthographic information for any of these languages, please submit
them.
    </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN47"
>3.5. FcLangResult</A
></H3
><P
>An FcLangResult is an enumeration used to return the results of comparing
two language strings or FcLangSet objects. FcLangEqual means the
objects match language and territory. FcLangDifferentTerritory means
the objects match in language but differ in territory.
FcLangDifferentLang means the objects differ in language.
    </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN50"
>3.6. FcType</A
></H3
><P
>Tags the kind of data stored in an FcValue.
    </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN53"
>3.7. FcValue</A
></H3
><P
>An FcValue object holds a single value with one of a number of different
types.  The 'type' tag indicates which member is valid.
    <PRE
CLASS="PROGRAMLISTING"
>        typedef struct _FcValue {
                FcType type;
                union {
                        const FcChar8 *s;
                        int i;
                        FcBool b;
                        double d;
                        const FcMatrix *m;
                        const FcCharSet *c;
			void *f;
			const FcLangSet *l;
                } u;
        } FcValue;
    </PRE
>
    <PRE
CLASS="PROGRAMLISTING"
>                  FcValue Members

        Type            Union member    Datatype
        --------------------------------
        FcTypeVoid      (none)          (none)
        FcTypeInteger   i               int
        FcTypeDouble    d               double
        FcTypeString    s               FcChar8 *
        FcTypeBool      b               b
        FcTypeMatrix    m               FcMatrix *
        FcTypeCharSet   c               FcCharSet *
	FcTypeFTFace	f		void * (FT_Face)
	FcTypeLangSet	l		FcLangSet *
    </PRE
>
    </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN58"
>3.8. FcPattern</A
></H3
><P
>holds a set of names with associated value lists; each name refers to a
property of a font.  FcPatterns are used as inputs to the matching code as
well as holding information about specific fonts.  Each property can hold
one or more values; conventionally all of the same type, although the
interface doesn't demand that.
    </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN61"
>3.9. FcFontSet</A
></H3
><P
>    <PRE
CLASS="PROGRAMLISTING"
>        typedef struct _FcFontSet {
                int nfont;
                int sfont;
                FcPattern **fonts;
        } FcFontSet;
    </PRE
>
An FcFontSet contains a list of FcPatterns.  Internally fontconfig uses this
data structure to hold sets of fonts.  Externally, fontconfig returns the
results of listing fonts in this format.  'nfont' holds the number of
patterns in the 'fonts' array; 'sfont' is used to indicate the size of that
array.
    </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN65"
>3.10. FcStrSet, FcStrList</A
></H3
><P
>FcStrSet holds a list of strings that can be appended to and enumerated.
Its unique characteristic is that the enumeration works even while strings
are appended during enumeration.  FcStrList is used during enumeration to
safely and correctly walk the list of strings even while that list is edited
in the middle of enumeration.
    </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN68"
>3.11. FcObjectSet</A
></H3
><P
>      <PRE
CLASS="PROGRAMLISTING"
>        typedef struct _FcObjectSet {
                int nobject;
                int sobject;
                const char **objects;
        } FcObjectSet;
      </PRE
>
holds a set of names and is used to specify which fields from fonts are
placed in the the list of returned patterns when listing fonts.
    </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN72"
>3.12. FcObjectType</A
></H3
><P
>      <PRE
CLASS="PROGRAMLISTING"
>        typedef struct _FcObjectType {
                const char *object;
                FcType type;
        } FcObjectType;
      </PRE
>
marks the type of a pattern element generated when parsing font names.
Applications can add new object types so that font names may contain the new
elements.
    </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN76"
>3.13. FcConstant</A
></H3
><P
>      <PRE
CLASS="PROGRAMLISTING"
>        typedef struct _FcConstant {
            const FcChar8 *name;
            const char *object;
            int value;
        } FcConstant;
      </PRE
>
Provides for symbolic constants for new pattern elements.  When 'name' is
seen in a font name, an 'object' element is created with value 'value'.
    </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN80"
>3.14. FcBlanks</A
></H3
><P
>holds a list of Unicode chars which are expected to be blank; unexpectedly
blank chars are assumed to be invalid and are elided from the charset
associated with the font.
    </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN83"
>3.15. FcFileCache</A
></H3
><P
>holds the per-user cache information for use while loading the font
database. This is built automatically for the current configuration when
that is loaded.  Applications must always pass '0' when one is requested.
    </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN86"
>3.16. FcConfig</A
></H3
><P
>holds a complete configuration of the library; there is one default
configuration, other can be constructed from XML data structures.  All
public entry points that need global data can take an optional FcConfig*
argument; passing 0 uses the default configuration.  FcConfig objects hold two
sets of fonts, the first contains those specified by the configuration, the
second set holds those added by the application at run-time.  Interfaces
that need to reference a particular set use one of the FcSetName enumerated
values.
    </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN89"
>3.17. FcSetName</A
></H3
><P
>Specifies one of the two sets of fonts available in a configuration;
FcSetSystem for those fonts specified in the configuration and
FcSetApplication which holds fonts provided by the application.
    </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN92"
>3.18. FcResult</A
></H3
><P
>Used as a return type for functions manipulating FcPattern objects.
    <PRE
CLASS="PROGRAMLISTING"
>      FcResult Values
        Result Code             Meaning
        -----------------------------------------------------------
        FcResultMatch           Object exists with the specified ID
        FcResultNoMatch         Object doesn't exist at all
        FcResultTypeMismatch    Object exists, but the type doesn't match
        FcResultNoId            Object exists, but has fewer values
                                than specified
        FcResultOutOfMemory     malloc failed
    </PRE
>
    </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN96"
>3.19. FcAtomic</A
></H3
><P
>Used for locking access to configuration files.  Provides a safe way to update
configuration files.
    </P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN99"
>3.20. FcCache</A
></H3
><P
>Holds information about the fonts contained in a single directory. Normal
applications need not worry about this as caches for font access are
automatically managed by the library. Applications dealing with cache
management may want to use some of these objects in their work, however the
included 'fc-cache' program generally suffices for all of that.
    </P
></DIV
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="AEN102"
>4. FUNCTIONS</A
></H2
><P
>These are grouped by functionality, often using the main data type being
manipulated.
  </P
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN105"
>4.1. Initialization</A
></H3
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="#FCINITLOADCONFIG"
>FcInitLoadConfig</A
>&nbsp;--&nbsp;load configuration</DT
><DT
><A
HREF="#FCINITLOADCONFIGANDFONTS"
>FcInitLoadConfigAndFonts</A
>&nbsp;--&nbsp;load configuration and font data</DT
><DT
><A
HREF="#FCINIT"
>FcInit</A
>&nbsp;--&nbsp;initialize fontconfig library</DT
><DT
><A
HREF="#FCFINI"
>FcFini</A
>&nbsp;--&nbsp;finalize fontconfig library</DT
><DT
><A
HREF="#FCGETVERSION"
>FcGetVersion</A
>&nbsp;--&nbsp;library version number</DT
><DT
><A
HREF="#FCINITREINITIALIZE"
>FcInitReinitialize</A
>&nbsp;--&nbsp;re-initialize library</DT
><DT
><A
HREF="#FCINITBRINGUPTODATE"
>FcInitBringUptoDate</A
>&nbsp;--&nbsp;reload configuration files if needed</DT
></DL
></DIV
><P
>These functions provide some control over how the library is initialized.
    </P
><H1
><A
NAME="FCINITLOADCONFIG"
></A
>FcInitLoadConfig</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN112"
></A
><H2
>Name</H2
>FcInitLoadConfig&nbsp;--&nbsp;load configuration</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN115"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN116"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcConfig * FcInitLoadConfig</CODE
>(void);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN123"
></A
><H2
>Description</H2
><P
>Loads the default configuration file and returns the resulting configuration.
Does not load any font information.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN126"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCINITLOADCONFIGANDFONTS"
></A
>FcInitLoadConfigAndFonts</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN133"
></A
><H2
>Name</H2
>FcInitLoadConfigAndFonts&nbsp;--&nbsp;load configuration and font data</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN136"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN137"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcConfig * FcInitLoadConfigAndFonts</CODE
>(void);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN144"
></A
><H2
>Description</H2
><P
>Loads the default configuration file and builds information about the
available fonts.  Returns the resulting configuration.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN147"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCINIT"
></A
>FcInit</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN154"
></A
><H2
>Name</H2
>FcInit&nbsp;--&nbsp;initialize fontconfig library</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN157"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN158"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcInit</CODE
>(void);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN165"
></A
><H2
>Description</H2
><P
>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.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN168"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCFINI"
></A
>FcFini</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN175"
></A
><H2
>Name</H2
>FcFini&nbsp;--&nbsp;finalize fontconfig library</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN178"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN179"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcFini</CODE
>(void);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN186"
></A
><H2
>Description</H2
><P
>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.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN189"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCGETVERSION"
></A
>FcGetVersion</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN196"
></A
><H2
>Name</H2
>FcGetVersion&nbsp;--&nbsp;library version number</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN199"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN200"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>int FcGetVersion</CODE
>(void);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN207"
></A
><H2
>Description</H2
><P
>Returns the version number of the library.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN210"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCINITREINITIALIZE"
></A
>FcInitReinitialize</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN217"
></A
><H2
>Name</H2
>FcInitReinitialize&nbsp;--&nbsp;re-initialize library</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN220"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN221"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcInitReinitialize</CODE
>(void);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN228"
></A
><H2
>Description</H2
><P
>Forces the default configuration file to be reloaded and resets the default
configuration. Returns FcFalse if the configuration cannot be reloaded (due
to configuration file errors, allocation failures or other issues) and leaves the
existing configuration unchanged. Otherwise returns FcTrue.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN231"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCINITBRINGUPTODATE"
></A
>FcInitBringUptoDate</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN238"
></A
><H2
>Name</H2
>FcInitBringUptoDate&nbsp;--&nbsp;reload configuration files if needed</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN241"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN242"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcInitBringUptoDate</CODE
>(void);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN249"
></A
><H2
>Description</H2
><P
>Checks the rescan interval in the default configuration, checking the
configuration if the interval has passed and reloading the configuration if
when any changes are detected. Returns FcFalse if the configuration cannot
be reloaded (see FcInitReinitialize). Otherwise returns FcTrue.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN252"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN255"
>4.2. FcPattern</A
></H3
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="#FCPATTERNCREATE"
>FcPatternCreate</A
>&nbsp;--&nbsp;Create a pattern</DT
><DT
><A
HREF="#FCPATTERNDUPLICATE"
>FcPatternDuplicate</A
>&nbsp;--&nbsp;Copy a pattern</DT
><DT
><A
HREF="#FCPATTERNREFERENCE"
>FcPatternReference</A
>&nbsp;--&nbsp;Increment pattern reference count</DT
><DT
><A
HREF="#FCPATTERNDESTROY"
>FcPatternDestroy</A
>&nbsp;--&nbsp;Destroy a pattern</DT
><DT
><A
HREF="#FCPATTERNEQUAL"
>FcPatternEqual</A
>&nbsp;--&nbsp;Compare patterns</DT
><DT
><A
HREF="#FCPATTERNEQUALSUBSET"
>FcPatternEqualSubset</A
>&nbsp;--&nbsp;Compare portions of patterns</DT
><DT
><A
HREF="#FCPATTERNFILTER"
>FcPatternFilter</A
>&nbsp;--&nbsp;Filter the objects of pattern</DT
><DT
><A
HREF="#FCPATTERNHASH"
>FcPatternHash</A
>&nbsp;--&nbsp;Compute a pattern hash value</DT
><DT
><A
HREF="#FCPATTERNADD"
>FcPatternAdd</A
>&nbsp;--&nbsp;Add a value to a pattern</DT
><DT
><A
HREF="#FCPATTERNADDWEAK"
>FcPatternAddWeak</A
>&nbsp;--&nbsp;Add a value to a pattern with weak binding</DT
><DT
><A
HREF="#FCPATTERNADD-TYPE"
>FcPatternAdd-Type</A
>&nbsp;--&nbsp;Add a typed value to a pattern</DT
><DT
><A
HREF="#FCPATTERNGET"
>FcPatternGet</A
>&nbsp;--&nbsp;Return a value from a pattern</DT
><DT
><A
HREF="#FCPATTERNGET-TYPE"
>FcPatternGet-Type</A
>&nbsp;--&nbsp;Return a typed value from a pattern</DT
><DT
><A
HREF="#FCPATTERNBUILD"
>FcPatternBuild</A
>&nbsp;--&nbsp;Create patterns from arguments</DT
><DT
><A
HREF="#FCPATTERNDEL"
>FcPatternDel</A
>&nbsp;--&nbsp;Delete a property from a pattern</DT
><DT
><A
HREF="#FCPATTERNREMOVE"
>FcPatternRemove</A
>&nbsp;--&nbsp;Remove one object of the specified type from the pattern</DT
><DT
><A
HREF="#FCPATTERNPRINT"
>FcPatternPrint</A
>&nbsp;--&nbsp;Print a pattern for debugging</DT
><DT
><A
HREF="#FCDEFAULTSUBSTITUTE"
>FcDefaultSubstitute</A
>&nbsp;--&nbsp;Perform default substitutions in a pattern</DT
><DT
><A
HREF="#FCNAMEPARSE"
>FcNameParse</A
>&nbsp;--&nbsp;Parse a pattern string</DT
><DT
><A
HREF="#FCNAMEUNPARSE"
>FcNameUnparse</A
>&nbsp;--&nbsp;Convert a pattern back into a string that can be parsed</DT
><DT
><A
HREF="#FCPATTERNFORMAT"
>FcPatternFormat</A
>&nbsp;--&nbsp;Format a pattern into a string according to a format specifier</DT
></DL
></DIV
><P
>An FcPattern is an opaque type that holds both patterns to match against the
available fonts, as well as the information about each font.
    </P
><H1
><A
NAME="FCPATTERNCREATE"
></A
>FcPatternCreate</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN262"
></A
><H2
>Name</H2
>FcPatternCreate&nbsp;--&nbsp;Create a pattern</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN265"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN266"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcPattern * FcPatternCreate</CODE
>(void);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN273"
></A
><H2
>Description</H2
><P
>Creates a pattern with no properties; used to build patterns from scratch.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN276"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCPATTERNDUPLICATE"
></A
>FcPatternDuplicate</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN283"
></A
><H2
>Name</H2
>FcPatternDuplicate&nbsp;--&nbsp;Copy a pattern</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN286"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN287"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcPattern * FcPatternDuplicate</CODE
>(const FcPattern *p);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN294"
></A
><H2
>Description</H2
><P
>Copy a pattern, returning a new pattern that matches
<CODE
CLASS="PARAMETER"
>p</CODE
>. Each pattern may be modified without affecting the
other.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN298"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCPATTERNREFERENCE"
></A
>FcPatternReference</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN305"
></A
><H2
>Name</H2
>FcPatternReference&nbsp;--&nbsp;Increment pattern reference count</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN308"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN309"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcPatternReference</CODE
>(FcPattern *p);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN316"
></A
><H2
>Description</H2
><P
>Add another reference to <CODE
CLASS="PARAMETER"
>p</CODE
>. Patterns are freed only
when the reference count reaches zero.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN320"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCPATTERNDESTROY"
></A
>FcPatternDestroy</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN327"
></A
><H2
>Name</H2
>FcPatternDestroy&nbsp;--&nbsp;Destroy a pattern</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN330"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN331"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcPatternDestroy</CODE
>(FcPattern *p);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN338"
></A
><H2
>Description</H2
><P
>Decrement the pattern reference count. If all references are gone, destroys
the pattern, in the process destroying all related values.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN341"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCPATTERNEQUAL"
></A
>FcPatternEqual</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN348"
></A
><H2
>Name</H2
>FcPatternEqual&nbsp;--&nbsp;Compare patterns</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN351"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN352"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcPatternEqual</CODE
>(const FcPattern *pa, const FcPattern *pb);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN361"
></A
><H2
>Description</H2
><P
>Returns whether <CODE
CLASS="PARAMETER"
>pa</CODE
> and <CODE
CLASS="PARAMETER"
>pb</CODE
> are exactly alike.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN366"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCPATTERNEQUALSUBSET"
></A
>FcPatternEqualSubset</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN373"
></A
><H2
>Name</H2
>FcPatternEqualSubset&nbsp;--&nbsp;Compare portions of patterns</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN376"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN377"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcPatternEqualSubset</CODE
>(const FcPattern *pa, const FcPattern *pb, const FcObjectSet *os);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN388"
></A
><H2
>Description</H2
><P
>Returns whether <CODE
CLASS="PARAMETER"
>pa</CODE
> and <CODE
CLASS="PARAMETER"
>pb</CODE
> have exactly the same values for all of the
objects in <CODE
CLASS="PARAMETER"
>os</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN394"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCPATTERNFILTER"
></A
>FcPatternFilter</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN401"
></A
><H2
>Name</H2
>FcPatternFilter&nbsp;--&nbsp;Filter the objects of pattern</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN404"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN405"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcPattern * FcPatternFilter</CODE
>(FcPattern *p, const FcObjectSet *);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN414"
></A
><H2
>Description</H2
><P
>Returns a new pattern that only has those objects from
<CODE
CLASS="PARAMETER"
>p</CODE
> that are in <CODE
CLASS="PARAMETER"
>os</CODE
>.
If <CODE
CLASS="PARAMETER"
>os</CODE
> is NULL, a duplicate of
<CODE
CLASS="PARAMETER"
>p</CODE
> is returned.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN421"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCPATTERNHASH"
></A
>FcPatternHash</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN428"
></A
><H2
>Name</H2
>FcPatternHash&nbsp;--&nbsp;Compute a pattern hash value</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN431"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN432"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcChar32 FcPatternHash</CODE
>(const FcPattern *p);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN439"
></A
><H2
>Description</H2
><P
>Returns a 32-bit number which is the same for any two patterns which are
equal.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN442"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCPATTERNADD"
></A
>FcPatternAdd</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN449"
></A
><H2
>Name</H2
>FcPatternAdd&nbsp;--&nbsp;Add a value to a pattern</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN452"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN453"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcPatternAdd</CODE
>(FcPattern *p, const char *object, FcValue value, FcBool append);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN466"
></A
><H2
>Description</H2
><P
>Adds a single value to the list of values associated with the property named
`object<CODE
CLASS="PARAMETER"
>.  If `append</CODE
> is FcTrue, the value is added at the end of any
existing list, otherwise it is inserted at the beginning.  `value' is saved
(with FcValueSave) when inserted into the pattern so that the library
retains no reference to any application-supplied data structure.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN470"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCPATTERNADDWEAK"
></A
>FcPatternAddWeak</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN477"
></A
><H2
>Name</H2
>FcPatternAddWeak&nbsp;--&nbsp;Add a value to a pattern with weak binding</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN480"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN481"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcPatternAddWeak</CODE
>(FcPattern *p, const char *object, FcValue value, FcBool append);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN494"
></A
><H2
>Description</H2
><P
>FcPatternAddWeak is essentially the same as FcPatternAdd except that any
values added to the list have binding <CODE
CLASS="PARAMETER"
>weak</CODE
> instead of <CODE
CLASS="PARAMETER"
>strong</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN499"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCPATTERNADD-TYPE"
></A
>FcPatternAdd-Type</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN506"
></A
><H2
>Name</H2
>FcPatternAddInteger, FcPatternAddDouble, FcPatternAddString, FcPatternAddMatrix, FcPatternAddCharSet, FcPatternAddBool, FcPatternAddFTFace, FcPatternAddLangSet&nbsp;--&nbsp;Add a typed value to a pattern</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN516"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN517"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcPatternAddInteger</CODE
>(FcPattern *p, const char *object, int i);</CODE
></P
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcPatternAddDouble</CODE
>(FcPattern *p, const char *object, double d);</CODE
></P
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcPatternAddString</CODE
>(FcPattern *p, const char *object, const FcChar8 *s);</CODE
></P
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcPatternAddMatrix</CODE
>(FcPattern *p, const char *object, const FcMatrix *m);</CODE
></P
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcPatternAddCharSet</CODE
>(FcPattern *p, const char *object, const FcCharSet *c);</CODE
></P
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcPatternAddBool</CODE
>(FcPattern *p, const char *object, FcBool b);</CODE
></P
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcPatternAddFTFace</CODE
>(FcPattern *p, const char *object, const FT_Facef);</CODE
></P
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcPatternAddLangSet</CODE
>(FcPattern *p, const char *object, const FcLangSet *l);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN591"
></A
><H2
>Description</H2
><P
>These are all convenience functions that insert objects of the specified
type into the pattern.  Use these in preference to FcPatternAdd as they
will provide compile-time typechecking.  These all append values to
any existing list of values.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN594"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCPATTERNGET"
></A
>FcPatternGet</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN601"
></A
><H2
>Name</H2
>FcPatternGet&nbsp;--&nbsp;Return a value from a pattern</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN604"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN605"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcResult FcPatternGet</CODE
>(FcPattern *p, const char *object, int id, FcValue *v);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN618"
></A
><H2
>Description</H2
><P
>Returns in <CODE
CLASS="PARAMETER"
>v</CODE
> the <CODE
CLASS="PARAMETER"
>id</CODE
>'th value
associated with the property <CODE
CLASS="PARAMETER"
>object</CODE
>.
The value returned is not a copy, but rather refers to the data stored
within the pattern directly.  Applications must not free this value.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN624"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCPATTERNGET-TYPE"
></A
>FcPatternGet-Type</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN631"
></A
><H2
>Name</H2
>FcPatternGetInteger, FcPatternGetDouble, FcPatternGetString, FcPatternGetMatrix, FcPatternGetCharSet, FcPatternGetBool, FcPatternGetFTFace, FcPatternGetLangSet&nbsp;--&nbsp;Return a typed value from a pattern</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN641"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN642"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcResult FcPatternGetInteger</CODE
>(FcPattern *p, const char *object, int n, int *i);</CODE
></P
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcResult FcPatternGetDouble</CODE
>(FcPattern *p, const char *object, int n, double *d);</CODE
></P
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcResult FcPatternGetString</CODE
>(FcPattern *p, const char *object, int n, FcChar8 **s);</CODE
></P
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcResult FcPatternGetMatrix</CODE
>(FcPattern *p, const char *object, int n, FcMatrix **s);</CODE
></P
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcResult FcPatternGetCharSet</CODE
>(FcPattern *p, const char *object, int n, FcCharSet **c);</CODE
></P
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcResult FcPatternGetBool</CODE
>(FcPattern *p, const char *object, int n, FcBool *b);</CODE
></P
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcResult FcPatternGetFTFace</CODE
>(FcPattern *p, const char *object, int n);</CODE
></P
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcResult FcPatternGetLangSet</CODE
>(FcPattern *p, const char *object, FT_Face *f);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN728"
></A
><H2
>Description</H2
><P
>These are convenience functions that call FcPatternGet and verify that the
returned data is of the expected type. They return FcResultTypeMismatch if
this is not the case.  Note that these (like FcPatternGet) do not make a
copy of any data structure referenced by the return value.  Use these
in preference to FcPatternGet to provide compile-time typechecking.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN731"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCPATTERNBUILD"
></A
>FcPatternBuild</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN738"
></A
><H2
>Name</H2
>FcPatternBuild, FcPatternVaBuild, FcPatternVapBuild&nbsp;--&nbsp;Create patterns from arguments</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN743"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN744"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcPattern * FcPatternBuild</CODE
>(FcPattern *pattern, ...);</CODE
></P
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcPattern * FcPatternVaBuild</CODE
>(FcPattern *pattern, va_list va);</CODE
></P
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcPatternVapBuild</CODE
>(FcPattern *result, FcPattern *pattern, va_list va);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN769"
></A
><H2
>Description</H2
><P
>Builds a pattern using a list of objects, types and values.  Each
value to be entered in the pattern is specified with three arguments:</P
><P
></P
><OL
TYPE="1"
><LI
><P
>Object name, a string describing the property to be added.</P
></LI
><LI
><P
>Object type, one of the FcType enumerated values</P
></LI
><LI
><P
>Value, not an FcValue, but the raw type as passed to any of the
FcPatternAdd&lt;type&gt; functions.  Must match the type of the second
argument.</P
></LI
></OL
><P
>The argument list is terminated by a null object name, no object type nor
value need be passed for this.  The values are added to `pattern', if
`pattern' is null, a new pattern is created.  In either case, the pattern is
returned. Example</P
><PRE
CLASS="PROGRAMLISTING"
>pattern = FcPatternBuild (0, FC_FAMILY, FcTypeString, "Times", (char *) 0);</PRE
><P
>FcPatternVaBuild is used when the arguments are already in the form of a
varargs value. FcPatternVapBuild is a macro version of FcPatternVaBuild
which returns its result directly in the <CODE
CLASS="PARAMETER"
>result</CODE
>
variable.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN783"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCPATTERNDEL"
></A
>FcPatternDel</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN790"
></A
><H2
>Name</H2
>FcPatternDel&nbsp;--&nbsp;Delete a property from a pattern</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN793"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN794"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcPatternDel</CODE
>(FcPattern *p, const char *object);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN803"
></A
><H2
>Description</H2
><P
>Deletes all values associated with the property `object', returning 
whether the property existed or not.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN806"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCPATTERNREMOVE"
></A
>FcPatternRemove</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN813"
></A
><H2
>Name</H2
>FcPatternRemove&nbsp;--&nbsp;Remove one object of the specified type from the pattern</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN816"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN817"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcPatternRemove</CODE
>(FcPattern *p, const char *object, int id);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN828"
></A
><H2
>Description</H2
><P
>Removes the value associated with the property `object' at position `id', returning 
whether the property existed and had a value at that position or not.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN831"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCPATTERNPRINT"
></A
>FcPatternPrint</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN838"
></A
><H2
>Name</H2
>FcPatternPrint&nbsp;--&nbsp;Print a pattern for debugging</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN841"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN842"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcPatternPrint</CODE
>(const FcPattern *p);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN849"
></A
><H2
>Description</H2
><P
>Prints an easily readable version of the pattern to stdout.  There is
no provision for reparsing data in this format, it's just for diagnostics
and debugging.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN852"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCDEFAULTSUBSTITUTE"
></A
>FcDefaultSubstitute</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN859"
></A
><H2
>Name</H2
>FcDefaultSubstitute&nbsp;--&nbsp;Perform default substitutions in a pattern</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN862"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN863"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcDefaultSubstitute</CODE
>(FcPattern *pattern);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN870"
></A
><H2
>Description</H2
><P
>Supplies default values for underspecified font patterns:
<P
></P
><UL
><LI
><P
>Patterns without a specified style or weight are set to Medium</P
></LI
><LI
><P
>Patterns without a specified style or slant are set to Roman</P
></LI
><LI
><P
>Patterns without a specified pixel size are given one computed from any
specified point size (default 12), dpi (default 75) and scale (default 1).</P
></LI
></UL
>
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN880"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCNAMEPARSE"
></A
>FcNameParse</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN887"
></A
><H2
>Name</H2
>FcNameParse&nbsp;--&nbsp;Parse a pattern string</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN890"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN891"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcPattern * FcNameParse</CODE
>(const FcChar8 *name);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN898"
></A
><H2
>Description</H2
><P
>Converts <CODE
CLASS="PARAMETER"
>name</CODE
> from the standard text format described above into a pattern.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN902"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCNAMEUNPARSE"
></A
>FcNameUnparse</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN909"
></A
><H2
>Name</H2
>FcNameUnparse&nbsp;--&nbsp;Convert a pattern back into a string that can be parsed</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN912"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN913"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcChar8 * FcNameUnparse</CODE
>(FcPattern *pat);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN920"
></A
><H2
>Description</H2
><P
>Converts the given pattern into the standard text format described above.
The return value is not static, but instead refers to newly allocated memory
which should be freed by the caller using free().
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN923"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCPATTERNFORMAT"
></A
>FcPatternFormat</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN930"
></A
><H2
>Name</H2
>FcPatternFormat&nbsp;--&nbsp;Format a pattern into a string according to a format specifier</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN933"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN934"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcChar8 * FcPatternFormat</CODE
>(FcPattern *pat, const FcChar8 *format);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN943"
></A
><H2
>Description</H2
><P
>Converts given pattern <CODE
CLASS="PARAMETER"
>pat</CODE
> into text described by
the format specifier <CODE
CLASS="PARAMETER"
>format</CODE
>.
The return value refers to newly allocated memory which should be freed by the
caller using free(), or NULL if <CODE
CLASS="PARAMETER"
>format</CODE
> is invalid.&#13;</P
><P
>&#13;The format is loosely modeled after printf-style format string.
The format string is composed of zero or more  directives: ordinary
characters (not "%"), which are copied unchanged to the output stream;
and tags which are interpreted to construct text from the pattern in a
variety of ways (explained below).
Special characters can be escaped
using backslash.  C-string style special characters like \n and \r are
also supported (this is useful when the format string is not a C string
literal).
It is advisable to always escape curly braces that
are meant to be copied to the output as ordinary characters.&#13;</P
><P
>&#13;Each tag is introduced by the character "%",
followed by an optional minimum field width,
followed by tag contents in curly braces ({}).
If the minimum field width value is provided the tag
will be expanded and the result padded to achieve the minimum width.
If the minimum field width is positive, the padding will right-align
the text.  Negative field width will left-align.
The rest of this section describes various supported tag contents
and their expansion.&#13;</P
><P
>&#13;A <I
CLASS="FIRSTTERM"
>simple</I
> tag
is one where the content is an identifier.  When simple
tags are expanded, the named identifier will be looked up in
<CODE
CLASS="PARAMETER"
>pattern</CODE
> and the resulting list of values returned,
joined together using comma.  For example, to print the family name and style of the
pattern, use the format "%{family} %{style}\n".  To extend the family column
to forty characters use "%-40{family}%{style}\n".&#13;</P
><P
>&#13;Simple tags expand to list of all values for an element.  To only choose
one of the values, one can index using the syntax "%{elt[idx]}".  For example,
to get the first family name only, use "%{family[0]}".&#13;</P
><P
>&#13;If a simple tag ends with "=" and the element is found in the pattern, the
name of the element followed by "=" will be output before the list of values.
For example, "%{weight=}" may expand to the string "weight=80".  Or to the empty
string if <CODE
CLASS="PARAMETER"
>pattern</CODE
> does not have weight set.&#13;</P
><P
>&#13;If a simple tag starts with ":" and the element is found in the pattern, ":"
will be printed first.  For example, combining this with the =, the format
"%{:weight=}" may expand to ":weight=80" or to the empty string
if <CODE
CLASS="PARAMETER"
>pattern</CODE
> does not have weight set.&#13;</P
><P
>&#13;If a simple tag contains the string ":-", the rest of the the tag contents
will be used as a default string.  The default string is output if the element
is not found in the pattern.  For example, the format
"%{:weight=:-123}" may expand to ":weight=80" or to the string
":weight=123" if <CODE
CLASS="PARAMETER"
>pattern</CODE
> does not have weight set.&#13;</P
><P
>&#13;A <I
CLASS="FIRSTTERM"
>count</I
> tag
is one that starts with the character "#" followed by an element
name, and expands to the number of values for the element in the pattern.
For example, "%{#family}" expands to the number of family names
<CODE
CLASS="PARAMETER"
>pattern</CODE
> has set, which may be zero.&#13;</P
><P
>&#13;A <I
CLASS="FIRSTTERM"
>sub-expression</I
> tag
is one that expands a sub-expression.  The tag contents
are the sub-expression to expand placed inside another set of curly braces.
Sub-expression tags are useful for aligning an entire sub-expression, or to
apply converters (explained later) to the entire sub-expression output.
For example, the format "%40{{%{family} %{style}}}" expands the sub-expression
to construct the family name followed by the style, then takes the entire
string and pads it on the left to be at least forty characters.&#13;</P
><P
>&#13;A <I
CLASS="FIRSTTERM"
>filter-out</I
> tag
is one starting with the character "-" followed by a
comma-separated list of element names, followed by a sub-expression enclosed
in curly braces.  The sub-expression will be expanded but with a pattern that
has the listed elements removed from it.
For example, the format "%{-size,pixelsize{sub-expr}}" will expand "sub-expr"
with <CODE
CLASS="PARAMETER"
>pattern</CODE
> sans the size and pixelsize elements.&#13;</P
><P
>&#13;A <I
CLASS="FIRSTTERM"
>filter-in</I
> tag
is one starting with the character "+" followed by a
comma-separated list of element names, followed by a sub-expression enclosed
in curly braces.  The sub-expression will be expanded but with a pattern that
only has the listed elements from the surrounding pattern.
For example, the format "%{+family,familylang{sub-expr}}" will expand "sub-expr"
with a sub-pattern consisting only the family and family lang elements of
<CODE
CLASS="PARAMETER"
>pattern</CODE
>.&#13;</P
><P
>&#13;A <I
CLASS="FIRSTTERM"
>conditional</I
> tag
is one starting with the character "?" followed by a
comma-separated list of element conditions, followed by two sub-expression
enclosed in curly braces.  An element condition can be an element name,
in which case it tests whether the element is defined in pattern, or
the character "!" followed by an element name, in which case the test
is negated.  The conditional passes if all the element conditions pass.
The tag expands the first sub-expression if the conditional passes, and
expands the second sub-expression otherwise.
For example, the format "%{?size,dpi,!pixelsize{pass}{fail}}" will expand
to "pass" if <CODE
CLASS="PARAMETER"
>pattern</CODE
> has size and dpi elements but
no pixelsize element, and to "fail" otherwise.&#13;</P
><P
>&#13;An <I
CLASS="FIRSTTERM"
>enumerate</I
> tag
is one starting with the string "[]" followed by a
comma-separated list of element names, followed by a sub-expression enclosed
in curly braces.  The list of values for the named elements are walked in
parallel and the sub-expression expanded each time with a pattern just having
a single value for those elements, starting from the first value and
continuing as long as any of those elements has a value.
For example, the format "%{[]family,familylang{%{family} (%{familylang})\n}}"
will expand the pattern "%{family} (%{familylang})\n" with a pattern
having only the first value of the family and familylang elements, then expands
it with the second values, then the third, etc.&#13;</P
><P
>&#13;As a special case, if an enumerate tag has only one element, and that element
has only one value in the pattern, and that value is of type FcLangSet, the
individual languages in the language set are enumerated.&#13;</P
><P
>&#13;A <I
CLASS="FIRSTTERM"
>builtin</I
> tag
is one starting with the character "=" followed by a builtin
name.  The following builtins are defined:

<P
></P
><DIV
CLASS="VARIABLELIST"
><DL
><DT
>unparse</DT
><DD
><P
>Expands to the result of calling FcNameUnparse() on the pattern.</P
></DD
><DT
>fcmatch</DT
><DD
><P
>Expands to the output of the default output format of the fc-match
command on the pattern, without the final newline.</P
></DD
><DT
>fclist</DT
><DD
><P
>Expands to the output of the default output format of the fc-list
command on the pattern, without the final newline.</P
></DD
><DT
>fccat</DT
><DD
><P
>Expands to the output of the default output format of the fc-cat
command on the pattern, without the final newline.</P
></DD
><DT
>pkgkit</DT
><DD
><P
>Expands to the list of PackageKit font() tags for the pattern.
Currently this includes tags for each family name, and each language
from the pattern, enumerated and sanitized into a set of tags terminated
by newline.  Package management systems can use these tags to tag their
packages accordingly.</P
></DD
></DL
></DIV
>

For example, the format "%{+family,style{%{=unparse}}}\n" will expand
to an unparsed name containing only the family and style element values
from <CODE
CLASS="PARAMETER"
>pattern</CODE
>.&#13;</P
><P
>&#13;The contents of any tag can be followed by a set of zero or more
<I
CLASS="FIRSTTERM"
>converter</I
>s.  A converter is specified by the
character "|" followed by the converter name and arguments.  The
following converters are defined:

<P
></P
><DIV
CLASS="VARIABLELIST"
><DL
><DT
>basename</DT
><DD
><P
>Replaces text with the results of calling FcStrBasename() on it.</P
></DD
><DT
>dirname</DT
><DD
><P
>Replaces text with the results of calling FcStrDirname() on it.</P
></DD
><DT
>downcase</DT
><DD
><P
>Replaces text with the results of calling FcStrDowncase() on it.</P
></DD
><DT
>shescape</DT
><DD
><P
>Escapes text for one level of shell expansion.
(Escapes single-quotes, also encloses text in single-quotes.)</P
></DD
><DT
>cescape</DT
><DD
><P
>Escapes text such that it can be used as part of a C string literal.
(Escapes backslash and double-quotes.)</P
></DD
><DT
>xmlescape</DT
><DD
><P
>Escapes text such that it can be used in XML and HTML.
(Escapes less-than, greater-than, and ampersand.)</P
></DD
><DT
>delete(<CODE
CLASS="PARAMETER"
>chars</CODE
>)</DT
><DD
><P
>Deletes all occurrences of each of the characters in <CODE
CLASS="PARAMETER"
>chars</CODE
>
from the text.
FIXME: This converter is not UTF-8 aware yet.</P
></DD
><DT
>escape(<CODE
CLASS="PARAMETER"
>chars</CODE
>)</DT
><DD
><P
>Escapes all occurrences of each of the characters in <CODE
CLASS="PARAMETER"
>chars</CODE
>
by prepending it by the first character in <CODE
CLASS="PARAMETER"
>chars</CODE
>.
FIXME: This converter is not UTF-8 aware yet.</P
></DD
><DT
>translate(<CODE
CLASS="PARAMETER"
>from</CODE
>,<CODE
CLASS="PARAMETER"
>to</CODE
>)</DT
><DD
><P
>Translates all occurrences of each of the characters in <CODE
CLASS="PARAMETER"
>from</CODE
>
by replacing them with their corresponding character in <CODE
CLASS="PARAMETER"
>to</CODE
>.
If <CODE
CLASS="PARAMETER"
>to</CODE
> has fewer characters than
<CODE
CLASS="PARAMETER"
>from</CODE
>, it will be extended by repeating its last
character.
FIXME: This converter is not UTF-8 aware yet.</P
></DD
></DL
></DIV
>

For example, the format "%{family|downcase|delete( )}\n" will expand
to the values of the family element in <CODE
CLASS="PARAMETER"
>pattern</CODE
>,
lower-cased and with spaces removed.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1053"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN1056"
>4.3. FcFontSet</A
></H3
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="#FCFONTSETCREATE"
>FcFontSetCreate</A
>&nbsp;--&nbsp;Create a font set</DT
><DT
><A
HREF="#FCFONTSETDESTROY"
>FcFontSetDestroy</A
>&nbsp;--&nbsp;Destroy a font set</DT
><DT
><A
HREF="#FCFONTSETADD"
>FcFontSetAdd</A
>&nbsp;--&nbsp;Add to a font set</DT
><DT
><A
HREF="#FCFONTSETLIST"
>FcFontSetList</A
>&nbsp;--&nbsp;List fonts from a set of font sets</DT
><DT
><A
HREF="#FCFONTSETMATCH"
>FcFontSetMatch</A
>&nbsp;--&nbsp;Return the best font from a set of font sets</DT
><DT
><A
HREF="#FCFONTSETPRINT"
>FcFontSetPrint</A
>&nbsp;--&nbsp;Print a set of patterns to stdout</DT
><DT
><A
HREF="#FCFONTSETSORT"
>FcFontSetSort</A
>&nbsp;--&nbsp;Add to a font set</DT
><DT
><A
HREF="#FCFONTSETSORTDESTROY"
>FcFontSetSortDestroy</A
>&nbsp;--&nbsp;DEPRECATED destroy a font set</DT
></DL
></DIV
><P
>An FcFontSet simply holds a list of patterns; these are used to return the
results of listing available fonts.
    </P
><H1
><A
NAME="FCFONTSETCREATE"
></A
>FcFontSetCreate</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1063"
></A
><H2
>Name</H2
>FcFontSetCreate&nbsp;--&nbsp;Create a font set</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1066"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1067"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcFontSet * FcFontSetCreate</CODE
>(void);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1074"
></A
><H2
>Description</H2
><P
>Creates an empty font set.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1077"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCFONTSETDESTROY"
></A
>FcFontSetDestroy</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1084"
></A
><H2
>Name</H2
>FcFontSetDestroy&nbsp;--&nbsp;Destroy a font set</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1087"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1088"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcFontSetDestroy</CODE
>(FcFontSet *s);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1095"
></A
><H2
>Description</H2
><P
>Destroys a font set.  Note that this destroys any referenced patterns as
well.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1098"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCFONTSETADD"
></A
>FcFontSetAdd</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1105"
></A
><H2
>Name</H2
>FcFontSetAdd&nbsp;--&nbsp;Add to a font set</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1108"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1109"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcFontSetAdd</CODE
>(FcFontSet *s, FcPattern *font);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1118"
></A
><H2
>Description</H2
><P
>Adds a pattern to a font set.  Note that the pattern is not copied before
being inserted into the set. Returns FcFalse if the pattern cannot be
inserted into the set (due to allocation failure). Otherwise returns FcTrue.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1121"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCFONTSETLIST"
></A
>FcFontSetList</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1128"
></A
><H2
>Name</H2
>FcFontSetList&nbsp;--&nbsp;List fonts from a set of font sets</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1131"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1132"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcFontSet * FcFontSetList</CODE
>(FcConfig *config, FcFontSet **sets, intnsets, FcPattern *pattern, FcObjectSet *object_set);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1147"
></A
><H2
>Description</H2
><P
>Selects fonts matching <CODE
CLASS="PARAMETER"
>pattern</CODE
> from
<CODE
CLASS="PARAMETER"
>sets</CODE
>, creates patterns from those
fonts containing only the objects in <CODE
CLASS="PARAMETER"
>object_set</CODE
> and returns
the set of unique such patterns.
If <CODE
CLASS="PARAMETER"
>config</CODE
> is NULL, the default configuration is checked
to be up to date, and used.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1154"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCFONTSETMATCH"
></A
>FcFontSetMatch</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1161"
></A
><H2
>Name</H2
>FcFontSetMatch&nbsp;--&nbsp;Return the best font from a set of font sets</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1164"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1165"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcPattern * FcFontSetMatch</CODE
>(FcConfig *config, FcFontSet **sets, intnsets, FcPattern *pattern, FcResult *result);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1180"
></A
><H2
>Description</H2
><P
>Finds the font in <CODE
CLASS="PARAMETER"
>sets</CODE
> most closely matching
<CODE
CLASS="PARAMETER"
>pattern</CODE
> and returns the result of
<CODE
CLASS="FUNCTION"
>FcFontRenderPrepare</CODE
> for that font and the provided
pattern. This function should be called only after
<CODE
CLASS="FUNCTION"
>FcConfigSubstitute</CODE
> and
<CODE
CLASS="FUNCTION"
>FcDefaultSubstitute</CODE
> have been called for
<CODE
CLASS="PARAMETER"
>pattern</CODE
>; otherwise the results will not be correct.
If <CODE
CLASS="PARAMETER"
>config</CODE
> is NULL, the current configuration is used.
Returns NULL if an error occurs during this process.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1190"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCFONTSETPRINT"
></A
>FcFontSetPrint</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1197"
></A
><H2
>Name</H2
>FcFontSetPrint&nbsp;--&nbsp;Print a set of patterns to stdout</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1200"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1201"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcFontSetPrint</CODE
>(FcFontSet *set);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1208"
></A
><H2
>Description</H2
><P
>This function is useful for diagnosing font related issues, printing the
complete contents of every pattern in <CODE
CLASS="PARAMETER"
>set</CODE
>. The format
of the output is designed to be of help to users and developers, and may
change at any time.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1212"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCFONTSETSORT"
></A
>FcFontSetSort</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1219"
></A
><H2
>Name</H2
>FcFontSetSort&nbsp;--&nbsp;Add to a font set</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1222"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1223"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
> FcFontSetSort</CODE
>(FcConfig *config, FcFontSet **sets, intnsets, FcPattern *pattern, FcBool trim, FcCharSet **csp, FcResult *result);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1242"
></A
><H2
>Description</H2
><P
>Returns the list of fonts from <CODE
CLASS="PARAMETER"
>sets</CODE
>
sorted by closeness to <CODE
CLASS="PARAMETER"
>pattern</CODE
>.  
If <CODE
CLASS="PARAMETER"
>trim</CODE
> is FcTrue,
elements in the list which don't include Unicode coverage not provided by
earlier elements in the list are elided.  The union of Unicode coverage of
all of the fonts is returned in <CODE
CLASS="PARAMETER"
>csp</CODE
>,
if <CODE
CLASS="PARAMETER"
>csp</CODE
> is not NULL.  This function
should be called only after FcConfigSubstitute and FcDefaultSubstitute have
been called for <CODE
CLASS="PARAMETER"
>p</CODE
>;
otherwise the results will not be correct.
    </P
><P
>The returned FcFontSet references FcPattern structures which may be shared
by the return value from multiple FcFontSort calls, applications cannot
modify these patterns.  Instead, they should be passed, along with
<CODE
CLASS="PARAMETER"
>pattern</CODE
> to
<CODE
CLASS="FUNCTION"
>FcFontRenderPrepare</CODE
> which combines them into a complete pattern.
    </P
><P
>The FcFontSet returned by FcFontSetSort is destroyed by calling FcFontSetDestroy.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1255"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCFONTSETSORTDESTROY"
></A
>FcFontSetSortDestroy</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1262"
></A
><H2
>Name</H2
>FcFontSetSortDestroy&nbsp;--&nbsp;DEPRECATED destroy a font set</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1265"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1266"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
> FcFontSetSortDestroy</CODE
>(FcFontSet *set);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1273"
></A
><H2
>Description</H2
><P
>This function is DEPRECATED. <CODE
CLASS="FUNCTION"
>FcFontSetSortDestroy</CODE
>
destroys <CODE
CLASS="PARAMETER"
>set</CODE
> by calling
<CODE
CLASS="FUNCTION"
>FcFontSetDestroy</CODE
>. Applications should use
<CODE
CLASS="FUNCTION"
>FcFontSetDestroy</CODE
> directly instead.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1280"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN1283"
>4.4. FcObjectSet</A
></H3
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="#FCOBJECTSETCREATE"
>FcObjectSetCreate</A
>&nbsp;--&nbsp;Create an object set</DT
><DT
><A
HREF="#FCOBJECTSETADD"
>FcObjectSetAdd</A
>&nbsp;--&nbsp;Add to an object set</DT
><DT
><A
HREF="#FCOBJECTSETDESTROY"
>FcObjectSetDestroy</A
>&nbsp;--&nbsp;Destroy an object set</DT
><DT
><A
HREF="#FCOBJECTSETBUILD"
>FcObjectSetBuild</A
>&nbsp;--&nbsp;Build object set from args</DT
></DL
></DIV
><P
>An FcObjectSet holds a list of pattern property names; it is used to
indicate which properties are to be returned in the patterns from
FcFontList.
    </P
><H1
><A
NAME="FCOBJECTSETCREATE"
></A
>FcObjectSetCreate</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1290"
></A
><H2
>Name</H2
>FcObjectSetCreate&nbsp;--&nbsp;Create an object set</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1293"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1294"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcObjectSet * FcObjectSetCreate</CODE
>(void);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1301"
></A
><H2
>Description</H2
><P
>Creates an empty set.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1304"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCOBJECTSETADD"
></A
>FcObjectSetAdd</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1311"
></A
><H2
>Name</H2
>FcObjectSetAdd&nbsp;--&nbsp;Add to an object set</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1314"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1315"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcObjectSetAdd</CODE
>(FcObjectSet *os, const char *object);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1324"
></A
><H2
>Description</H2
><P
>Adds a property name to the set. Returns FcFalse if the property name cannot be
inserted into the set (due to allocation failure). Otherwise returns FcTrue.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1327"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCOBJECTSETDESTROY"
></A
>FcObjectSetDestroy</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1334"
></A
><H2
>Name</H2
>FcObjectSetDestroy&nbsp;--&nbsp;Destroy an object set</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1337"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1338"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcObjectSetDestroy</CODE
>(FcObjectSet *os);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1345"
></A
><H2
>Description</H2
><P
>Destroys an object set.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1348"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCOBJECTSETBUILD"
></A
>FcObjectSetBuild</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1355"
></A
><H2
>Name</H2
>FcObjectSetBuild, FcObjectSetVaBuild, FcObjectSetVapBuild&nbsp;--&nbsp;Build object set from args</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1360"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1361"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcObjectSet * FcObjectSetBuild</CODE
>(const char *first, ...);</CODE
></P
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcObjectSet * FcObjectSetVaBuild</CODE
>(const char *first, va_list va);</CODE
></P
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcObjectSetVapBuild</CODE
>(FcObjectSet *result, const char *first, va_list va);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1386"
></A
><H2
>Description</H2
><P
>These build an object set from a null-terminated list of property names.
FcObjectSetVapBuild is a macro version of FcObjectSetVaBuild which returns
the result in the <CODE
CLASS="PARAMETER"
>result</CODE
> variable directly.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1390"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN1393"
>4.5. FreeType specific functions</A
></H3
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="#FCFREETYPECHARINDEX"
>FcFreeTypeCharIndex</A
>&nbsp;--&nbsp;map Unicode to glyph id</DT
><DT
><A
HREF="#FCFREETYPECHARSET"
>FcFreeTypeCharSet</A
>&nbsp;--&nbsp;compute Unicode coverage</DT
><DT
><A
HREF="#FCFREETYPECHARSETANDSPACING"
>FcFreeTypeCharSetAndSpacing</A
>&nbsp;--&nbsp;compute Unicode coverage and spacing type</DT
><DT
><A
HREF="#FCFREETYPEQUERY"
>FcFreeTypeQuery</A
>&nbsp;--&nbsp;compute pattern from font file (and index)</DT
><DT
><A
HREF="#FCFREETYPEQUERYFACE"
>FcFreeTypeQueryFace</A
>&nbsp;--&nbsp;compute pattern from FT_Face</DT
></DL
></DIV
><P
>While the fontconfig library doesn't insist that FreeType be used as the
rasterization mechanism for fonts, it does provide some convenience
functions.
    </P
><H1
><A
NAME="FCFREETYPECHARINDEX"
></A
>FcFreeTypeCharIndex</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1400"
></A
><H2
>Name</H2
>FcFreeTypeCharIndex&nbsp;--&nbsp;map Unicode to glyph id</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1403"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1404"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
#include &lt;fcfreetype.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FT_UInt FcFreeTypeCharIndex</CODE
>(FT_Face face, FcChar32 ucs4);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1413"
></A
><H2
>Description</H2
><P
>Maps a Unicode char to a glyph index.  This function uses information from
several possible underlying encoding tables to work around broken fonts.
As a result, this function isn't designed to be used in performance
sensitive areas; results from this function are intended to be cached by
higher level functions.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1416"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCFREETYPECHARSET"
></A
>FcFreeTypeCharSet</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1423"
></A
><H2
>Name</H2
>FcFreeTypeCharSet&nbsp;--&nbsp;compute Unicode coverage</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1426"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1427"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
#include &lt;fcfreetype.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcCharSet * FcFreeTypeCharSet</CODE
>(FT_Face face, FcBlanks *blanks);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1436"
></A
><H2
>Description</H2
><P
>Scans a FreeType face and returns the set of encoded Unicode chars.  This scans
several encoding tables to build as complete a list as possible.  
If 'blanks' is not 0, the glyphs in the font are examined and any blank glyphs
not in 'blanks' are not placed in the returned FcCharSet.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1439"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCFREETYPECHARSETANDSPACING"
></A
>FcFreeTypeCharSetAndSpacing</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1446"
></A
><H2
>Name</H2
>FcFreeTypeCharSetAndSpacing&nbsp;--&nbsp;compute Unicode coverage and spacing type</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1449"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1450"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
#include &lt;fcfreetype.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcCharSet * FcFreeTypeCharSetAndSpacing</CODE
>(FT_Face face, FcBlanks *blanks, int *spacing);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1461"
></A
><H2
>Description</H2
><P
>Scans a FreeType face and returns the set of encoded Unicode chars.
This scans
several encoding tables to build as complete a list as possible.  
If 'blanks' is not 0, the glyphs in the font are examined and any blank glyphs
not in 'blanks' are not placed in the returned FcCharSet.
<CODE
CLASS="PARAMETER"
>spacing</CODE
> receives the computed spacing type of the
font, one of FC_MONO for a font where all glyphs have the same width,
FC_DUAL, where the font has glyphs in precisely two widths, one twice as
wide as the other, or FC_PROPORTIONAL where the font has glyphs of many
widths.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1465"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCFREETYPEQUERY"
></A
>FcFreeTypeQuery</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1472"
></A
><H2
>Name</H2
>FcFreeTypeQuery&nbsp;--&nbsp;compute pattern from font file (and index)</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1475"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1476"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
#include &lt;fcfreetype.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcPattern * FcFreeTypeQuery</CODE
>(const FcChar8 *file, int id, FcBlanks *blanks, int *count);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1489"
></A
><H2
>Description</H2
><P
>Constructs a pattern representing the 'id'th font in 'file'.  The number
of fonts in 'file' is returned in 'count'.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1492"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCFREETYPEQUERYFACE"
></A
>FcFreeTypeQueryFace</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1499"
></A
><H2
>Name</H2
>FcFreeTypeQueryFace&nbsp;--&nbsp;compute pattern from FT_Face</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1502"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1503"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
#include &lt;fcfreetype.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcPattern * FcFreeTypeQueryFace</CODE
>(const FT_Face face, const FcChar8 *file, int id, FcBlanks *blanks);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1516"
></A
><H2
>Description</H2
><P
>Constructs a pattern representing 'face'. 'file' and 'id' are used solely as
data for pattern elements (FC_FILE, FC_INDEX and sometimes FC_FAMILY).
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1519"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN1522"
>4.6. FcValue</A
></H3
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="#FCVALUEDESTROY"
>FcValueDestroy</A
>&nbsp;--&nbsp;Free a value</DT
><DT
><A
HREF="#FCVALUESAVE"
>FcValueSave</A
>&nbsp;--&nbsp;Copy a value</DT
><DT
><A
HREF="#FCVALUEPRINT"
>FcValuePrint</A
>&nbsp;--&nbsp;Print a value to stdout</DT
><DT
><A
HREF="#FCVALUEEQUAL"
>FcValueEqual</A
>&nbsp;--&nbsp;Test two values for equality</DT
></DL
></DIV
><P
>FcValue is a structure containing a type tag and a union of all possible
datatypes.  The tag is an enum of type 
<SPAN
CLASS="emphasis"
><I
CLASS="EMPHASIS"
>FcType</I
></SPAN
>
and is intended to provide a measure of run-time
typechecking, although that depends on careful programming.
    </P
><H1
><A
NAME="FCVALUEDESTROY"
></A
>FcValueDestroy</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1530"
></A
><H2
>Name</H2
>FcValueDestroy&nbsp;--&nbsp;Free a value</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1533"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1534"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcValueDestroy</CODE
>(FcValue v);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1541"
></A
><H2
>Description</H2
><P
>Frees any memory referenced by <CODE
CLASS="PARAMETER"
>v</CODE
>.  Values of type FcTypeString,
FcTypeMatrix and FcTypeCharSet reference memory, the other types do not.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1545"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCVALUESAVE"
></A
>FcValueSave</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1552"
></A
><H2
>Name</H2
>FcValueSave&nbsp;--&nbsp;Copy a value</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1555"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1556"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcValue FcValueSave</CODE
>(FcValue v);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1563"
></A
><H2
>Description</H2
><P
>Returns a copy of <CODE
CLASS="PARAMETER"
>v</CODE
> duplicating any object referenced by it so that <CODE
CLASS="PARAMETER"
>v</CODE
>
may be safely destroyed without harming the new value.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1568"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCVALUEPRINT"
></A
>FcValuePrint</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1575"
></A
><H2
>Name</H2
>FcValuePrint&nbsp;--&nbsp;Print a value to stdout</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1578"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1579"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcValuePrint</CODE
>(FcValue v);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1586"
></A
><H2
>Description</H2
><P
>Prints a human-readable representation of <CODE
CLASS="PARAMETER"
>v</CODE
> to
stdout. The format should not be considered part of the library
specification as it may change in the future.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1590"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCVALUEEQUAL"
></A
>FcValueEqual</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1597"
></A
><H2
>Name</H2
>FcValueEqual&nbsp;--&nbsp;Test two values for equality</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1600"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1601"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcValueEqual</CODE
>(FcValue v_a, FcValue v_b);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1610"
></A
><H2
>Description</H2
><P
>Compares two values. Integers and Doubles are compared as numbers; otherwise
the two values have to be the same type to be considered equal. Strings are
compared ignoring case.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1613"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN1616"
>4.7. FcCharSet</A
></H3
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="#FCCHARSETCREATE"
>FcCharSetCreate</A
>&nbsp;--&nbsp;Create an empty character set</DT
><DT
><A
HREF="#FCCHARSETDESTROY"
>FcCharSetDestroy</A
>&nbsp;--&nbsp;Destroy a character set</DT
><DT
><A
HREF="#FCCHARSETADDCHAR"
>FcCharSetAddChar</A
>&nbsp;--&nbsp;Add a character to a charset</DT
><DT
><A
HREF="#FCCHARSETDELCHAR"
>FcCharSetDelChar</A
>&nbsp;--&nbsp;Add a character to a charset</DT
><DT
><A
HREF="#FCCHARSETCOPY"
>FcCharSetCopy</A
>&nbsp;--&nbsp;Copy a charset</DT
><DT
><A
HREF="#FCCHARSETEQUAL"
>FcCharSetEqual</A
>&nbsp;--&nbsp;Compare two charsets</DT
><DT
><A
HREF="#FCCHARSETINTERSECT"
>FcCharSetIntersect</A
>&nbsp;--&nbsp;Intersect charsets</DT
><DT
><A
HREF="#FCCHARSETUNION"
>FcCharSetUnion</A
>&nbsp;--&nbsp;Add charsets</DT
><DT
><A
HREF="#FCCHARSETSUBTRACT"
>FcCharSetSubtract</A
>&nbsp;--&nbsp;Subtract charsets</DT
><DT
><A
HREF="#FCCHARSETMERGE"
>FcCharSetMerge</A
>&nbsp;--&nbsp;Merge charsets</DT
><DT
><A
HREF="#FCCHARSETHASCHAR"
>FcCharSetHasChar</A
>&nbsp;--&nbsp;Check a charset for a char</DT
><DT
><A
HREF="#FCCHARSETCOUNT"
>FcCharSetCount</A
>&nbsp;--&nbsp;Count entries in a charset</DT
><DT
><A
HREF="#FCCHARSETINTERSECTCOUNT"
>FcCharSetIntersectCount</A
>&nbsp;--&nbsp;Intersect and count charsets</DT
><DT
><A
HREF="#FCCHARSETSUBTRACTCOUNT"
>FcCharSetSubtractCount</A
>&nbsp;--&nbsp;Subtract and count charsets</DT
><DT
><A
HREF="#FCCHARSETISSUBSET"
>FcCharSetIsSubset</A
>&nbsp;--&nbsp;Test for charset inclusion</DT
><DT
><A
HREF="#FCCHARSETFIRSTPAGE"
>FcCharSetFirstPage</A
>&nbsp;--&nbsp;Start enumerating charset contents</DT
><DT
><A
HREF="#FCCHARSETNEXTPAGE"
>FcCharSetNextPage</A
>&nbsp;--&nbsp;Continue enumerating charset contents</DT
><DT
><A
HREF="#FCCHARSETCOVERAGE"
>FcCharSetCoverage</A
>&nbsp;--&nbsp;DEPRECATED return coverage for a Unicode page</DT
><DT
><A
HREF="#FCCHARSETNEW"
>FcCharSetNew</A
>&nbsp;--&nbsp;DEPRECATED alias for FcCharSetCreate</DT
></DL
></DIV
><P
>An FcCharSet is a boolean array indicating a set of Unicode chars.  Those
associated with a font are marked constant and cannot be edited.
FcCharSets may be reference counted internally to reduce memory consumption;
this may be visible to applications as the result of FcCharSetCopy may
return it's argument, and that CharSet may remain unmodifiable.
    </P
><H1
><A
NAME="FCCHARSETCREATE"
></A
>FcCharSetCreate</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1623"
></A
><H2
>Name</H2
>FcCharSetCreate&nbsp;--&nbsp;Create an empty character set</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1626"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1627"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcCharSet * FcCharSetCreate</CODE
>(void);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1634"
></A
><H2
>Description</H2
><P
><CODE
CLASS="FUNCTION"
>FcCharSetCreate</CODE
> allocates and initializes a new empty
character set object.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1638"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCHARSETDESTROY"
></A
>FcCharSetDestroy</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1645"
></A
><H2
>Name</H2
>FcCharSetDestroy&nbsp;--&nbsp;Destroy a character set</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1648"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1649"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcCharSetDestroy</CODE
>(FcCharSet *fcs);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1656"
></A
><H2
>Description</H2
><P
><CODE
CLASS="FUNCTION"
>FcCharSetDestroy</CODE
> decrements the reference count 
<CODE
CLASS="PARAMETER"
>fcs</CODE
>.  If the reference count becomes zero, all
memory referenced is freed.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1661"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCHARSETADDCHAR"
></A
>FcCharSetAddChar</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1668"
></A
><H2
>Name</H2
>FcCharSetAddChar&nbsp;--&nbsp;Add a character to a charset</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1671"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1672"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcCharSetAddChar</CODE
>(FcCharSet *fcs, FcChar32 ucs4);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1681"
></A
><H2
>Description</H2
><P
><CODE
CLASS="FUNCTION"
>FcCharSetAddChar</CODE
> adds a single Unicode char to the set,
returning FcFalse on failure, either as a result of a constant set or from
running out of memory.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1685"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCHARSETDELCHAR"
></A
>FcCharSetDelChar</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1692"
></A
><H2
>Name</H2
>FcCharSetDelChar&nbsp;--&nbsp;Add a character to a charset</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1695"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1696"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcCharSetDelChar</CODE
>(FcCharSet *fcs, FcChar32 ucs4);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1705"
></A
><H2
>Description</H2
><P
><CODE
CLASS="FUNCTION"
>FcCharSetDelChar</CODE
> deletes a single Unicode char from the set,
returning FcFalse on failure, either as a result of a constant set or from
running out of memory.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1709"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCHARSETCOPY"
></A
>FcCharSetCopy</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1716"
></A
><H2
>Name</H2
>FcCharSetCopy&nbsp;--&nbsp;Copy a charset</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1719"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1720"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcCharSet * FcCharSetCopy</CODE
>(FcCharSet *src);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1727"
></A
><H2
>Description</H2
><P
>Makes a copy of <CODE
CLASS="PARAMETER"
>src</CODE
>; note that this may not actually do anything more
than increment the reference count on <CODE
CLASS="PARAMETER"
>src</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1732"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCHARSETEQUAL"
></A
>FcCharSetEqual</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1739"
></A
><H2
>Name</H2
>FcCharSetEqual&nbsp;--&nbsp;Compare two charsets</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1742"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1743"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcCharSetEqual</CODE
>(const FcCharSet *a, const FcCharSet *b);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1752"
></A
><H2
>Description</H2
><P
>Returns whether <CODE
CLASS="PARAMETER"
>a</CODE
> and <CODE
CLASS="PARAMETER"
>b</CODE
>
contain the same set of Unicode chars.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1757"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCHARSETINTERSECT"
></A
>FcCharSetIntersect</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1764"
></A
><H2
>Name</H2
>FcCharSetIntersect&nbsp;--&nbsp;Intersect charsets</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1767"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1768"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcCharSet * FcCharSetIntersect</CODE
>(const FcCharSet *a, const FcCharSet *b);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1777"
></A
><H2
>Description</H2
><P
>Returns a set including only those chars found in both
<CODE
CLASS="PARAMETER"
>a</CODE
> and <CODE
CLASS="PARAMETER"
>b</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1782"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCHARSETUNION"
></A
>FcCharSetUnion</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1789"
></A
><H2
>Name</H2
>FcCharSetUnion&nbsp;--&nbsp;Add charsets</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1792"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1793"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcCharSet * FcCharSetUnion</CODE
>(const FcCharSet *a, const FcCharSet *b);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1802"
></A
><H2
>Description</H2
><P
>Returns a set including only those chars found in either <CODE
CLASS="PARAMETER"
>a</CODE
> or <CODE
CLASS="PARAMETER"
>b</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1807"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCHARSETSUBTRACT"
></A
>FcCharSetSubtract</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1814"
></A
><H2
>Name</H2
>FcCharSetSubtract&nbsp;--&nbsp;Subtract charsets</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1817"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1818"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcCharSet * FcCharSetSubtract</CODE
>(const FcCharSet *a, const FcCharSet *b);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1827"
></A
><H2
>Description</H2
><P
>Returns a set including only those chars found in <CODE
CLASS="PARAMETER"
>a</CODE
> but not <CODE
CLASS="PARAMETER"
>b</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1832"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCHARSETMERGE"
></A
>FcCharSetMerge</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1839"
></A
><H2
>Name</H2
>FcCharSetMerge&nbsp;--&nbsp;Merge charsets</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1842"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1843"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcCharSetMerge</CODE
>(FcCharSet *a, const FcCharSet *b, FcBool *changed);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1854"
></A
><H2
>Description</H2
><P
>Adds all chars in <CODE
CLASS="PARAMETER"
>b</CODE
> to <CODE
CLASS="PARAMETER"
>a</CODE
>.
In other words, this is an in-place version of FcCharSetUnion.
If <CODE
CLASS="PARAMETER"
>changed</CODE
> is not NULL, then it returns whether any new
chars from <CODE
CLASS="PARAMETER"
>b</CODE
> were added to <CODE
CLASS="PARAMETER"
>a</CODE
>.
Returns FcFalse on failure, either when <CODE
CLASS="PARAMETER"
>a</CODE
> is a constant
set or from running out of memory.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1863"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCHARSETHASCHAR"
></A
>FcCharSetHasChar</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1870"
></A
><H2
>Name</H2
>FcCharSetHasChar&nbsp;--&nbsp;Check a charset for a char</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1873"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1874"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcCharSetHasChar</CODE
>(const FcCharSet *fcs, FcChar32 ucs4);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1883"
></A
><H2
>Description</H2
><P
>Returns whether <CODE
CLASS="PARAMETER"
>fcs</CODE
> contains the char <CODE
CLASS="PARAMETER"
>ucs4</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1888"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCHARSETCOUNT"
></A
>FcCharSetCount</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1895"
></A
><H2
>Name</H2
>FcCharSetCount&nbsp;--&nbsp;Count entries in a charset</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1898"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1899"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcChar32 FcCharSetCount</CODE
>(const FcCharSet *a);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1906"
></A
><H2
>Description</H2
><P
>Returns the total number of Unicode chars in <CODE
CLASS="PARAMETER"
>a</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1910"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCHARSETINTERSECTCOUNT"
></A
>FcCharSetIntersectCount</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1917"
></A
><H2
>Name</H2
>FcCharSetIntersectCount&nbsp;--&nbsp;Intersect and count charsets</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1920"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1921"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcChar32 FcCharSetIntersectCount</CODE
>(const FcCharSet *a, const FcCharSet *b);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1930"
></A
><H2
>Description</H2
><P
>Returns the number of chars that are in both <CODE
CLASS="PARAMETER"
>a</CODE
> and <CODE
CLASS="PARAMETER"
>b</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1935"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCHARSETSUBTRACTCOUNT"
></A
>FcCharSetSubtractCount</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1942"
></A
><H2
>Name</H2
>FcCharSetSubtractCount&nbsp;--&nbsp;Subtract and count charsets</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1945"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1946"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcChar32 FcCharSetSubtractCount</CODE
>(const FcCharSet *a, const FcCharSet *b);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1955"
></A
><H2
>Description</H2
><P
>Returns the number of chars that are in <CODE
CLASS="PARAMETER"
>a</CODE
> but not in <CODE
CLASS="PARAMETER"
>b</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1960"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCHARSETISSUBSET"
></A
>FcCharSetIsSubset</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1967"
></A
><H2
>Name</H2
>FcCharSetIsSubset&nbsp;--&nbsp;Test for charset inclusion</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1970"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1971"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcCharSetIsSubset</CODE
>(const FcCharSet *a, const FcCharSet *b);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1980"
></A
><H2
>Description</H2
><P
>Returns whether <CODE
CLASS="PARAMETER"
>a</CODE
> is a subset of <CODE
CLASS="PARAMETER"
>b</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN1985"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCHARSETFIRSTPAGE"
></A
>FcCharSetFirstPage</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN1992"
></A
><H2
>Name</H2
>FcCharSetFirstPage&nbsp;--&nbsp;Start enumerating charset contents</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN1995"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN1996"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcChar32 FcCharSetFirstPage</CODE
>(const FcCharSet *a, FcChar32[FC_CHARSET_MAP_SIZE] map, FcChar32 *next);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2007"
></A
><H2
>Description</H2
><P
>Builds an array of bits marking the first page of Unicode coverage of
<CODE
CLASS="PARAMETER"
>a</CODE
>. Returns the base of the array. <CODE
CLASS="PARAMETER"
>next</CODE
> contains the next page in the
font.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2012"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCHARSETNEXTPAGE"
></A
>FcCharSetNextPage</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2019"
></A
><H2
>Name</H2
>FcCharSetNextPage&nbsp;--&nbsp;Continue enumerating charset contents</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2022"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2023"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcChar32 FcCharSetNextPage</CODE
>(const FcCharSet *a, FcChar32[FC_CHARSET_MAP_SIZE] map, FcChar32 *next);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2034"
></A
><H2
>Description</H2
><P
>Builds an array of bits marking the Unicode coverage of <CODE
CLASS="PARAMETER"
>a</CODE
> for page
<CODE
CLASS="PARAMETER"
>*next</CODE
>. Returns the base of the array. <CODE
CLASS="PARAMETER"
>next</CODE
> contains the next page in
the font.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2040"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCHARSETCOVERAGE"
></A
>FcCharSetCoverage</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2047"
></A
><H2
>Name</H2
>FcCharSetCoverage&nbsp;--&nbsp;DEPRECATED return coverage for a Unicode page</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2050"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2051"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcChar32 FcCharSetCoverage</CODE
>(const FcCharSet *a, FcChar32page, FcChar32[8]result);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2062"
></A
><H2
>Description</H2
><P
>DEPRECATED
This function returns a bitmask in <CODE
CLASS="PARAMETER"
>result</CODE
> which
indicates which code points in
<CODE
CLASS="PARAMETER"
>page</CODE
> are included in <CODE
CLASS="PARAMETER"
>a</CODE
>.
<CODE
CLASS="FUNCTION"
>FcCharSetCoverage</CODE
> returns the next page in the charset which has any
coverage.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2069"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCHARSETNEW"
></A
>FcCharSetNew</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2076"
></A
><H2
>Name</H2
>FcCharSetNew&nbsp;--&nbsp;DEPRECATED alias for FcCharSetCreate</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2079"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2080"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcCharSet * FcCharSetNew</CODE
>(void);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2087"
></A
><H2
>Description</H2
><P
><CODE
CLASS="FUNCTION"
>FcCharSetNew</CODE
> is a DEPRECATED alias for FcCharSetCreate.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2091"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN2094"
>4.8. FcLangSet</A
></H3
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="#FCLANGSETCREATE"
>FcLangSetCreate</A
>&nbsp;--&nbsp;create a langset object</DT
><DT
><A
HREF="#FCLANGSETDESTROY"
>FcLangSetDestroy</A
>&nbsp;--&nbsp;destroy a langset object</DT
><DT
><A
HREF="#FCLANGSETCOPY"
>FcLangSetCopy</A
>&nbsp;--&nbsp;copy a langset object</DT
><DT
><A
HREF="#FCLANGSETADD"
>FcLangSetAdd</A
>&nbsp;--&nbsp;add a language to a langset</DT
><DT
><A
HREF="#FCLANGSETDEL"
>FcLangSetDel</A
>&nbsp;--&nbsp;delete a language from a langset</DT
><DT
><A
HREF="#FCLANGSETUNION"
>FcLangSetUnion</A
>&nbsp;--&nbsp;Add langsets</DT
><DT
><A
HREF="#FCLANGSETSUBTRACT"
>FcLangSetSubtract</A
>&nbsp;--&nbsp;Subtract langsets</DT
><DT
><A
HREF="#FCLANGSETCOMPARE"
>FcLangSetCompare</A
>&nbsp;--&nbsp;compare language sets</DT
><DT
><A
HREF="#FCLANGSETCONTAINS"
>FcLangSetContains</A
>&nbsp;--&nbsp;check langset subset relation</DT
><DT
><A
HREF="#FCLANGSETEQUAL"
>FcLangSetEqual</A
>&nbsp;--&nbsp;test for matching langsets</DT
><DT
><A
HREF="#FCLANGSETHASH"
>FcLangSetHash</A
>&nbsp;--&nbsp;return a hash value for a langset</DT
><DT
><A
HREF="#FCLANGSETHASLANG"
>FcLangSetHasLang</A
>&nbsp;--&nbsp;test langset for language support</DT
><DT
><A
HREF="#FCLANGSETGETLANGS"
>FcLangSetGetLangs</A
>&nbsp;--&nbsp;get the list of languages in the langset</DT
><DT
><A
HREF="#FCGETLANGS"
>FcGetLangs</A
>&nbsp;--&nbsp;Get list of languages</DT
><DT
><A
HREF="#FCLANGGETCHARSET"
>FcLangGetCharSet</A
>&nbsp;--&nbsp;Get character map for a language</DT
></DL
></DIV
><P
>An FcLangSet is a set of language names (each of which include language and
an optional territory). They are used when selecting fonts to indicate which
languages the fonts need to support. Each font is marked, using language
orthography information built into fontconfig, with the set of supported
languages.
    </P
><H1
><A
NAME="FCLANGSETCREATE"
></A
>FcLangSetCreate</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2101"
></A
><H2
>Name</H2
>FcLangSetCreate&nbsp;--&nbsp;create a langset object</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2104"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2105"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcLangSet * FcLangSetCreate</CODE
>(void);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2112"
></A
><H2
>Description</H2
><P
><CODE
CLASS="FUNCTION"
>FcLangSetCreate</CODE
> creates a new FcLangSet object.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2116"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCLANGSETDESTROY"
></A
>FcLangSetDestroy</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2123"
></A
><H2
>Name</H2
>FcLangSetDestroy&nbsp;--&nbsp;destroy a langset object</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2126"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2127"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcLangSetDestroy</CODE
>(FcLangSet *ls);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2134"
></A
><H2
>Description</H2
><P
><CODE
CLASS="FUNCTION"
>FcLangSetDestroy</CODE
> destroys a FcLangSet object, freeing
all memory associated with it.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2138"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCLANGSETCOPY"
></A
>FcLangSetCopy</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2145"
></A
><H2
>Name</H2
>FcLangSetCopy&nbsp;--&nbsp;copy a langset object</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2148"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2149"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcLangSet * FcLangSetCopy</CODE
>(const FcLangSet *ls);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2156"
></A
><H2
>Description</H2
><P
><CODE
CLASS="FUNCTION"
>FcLangSetCopy</CODE
> creates a new FcLangSet object and
populates it with the contents of <CODE
CLASS="PARAMETER"
>ls</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2161"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCLANGSETADD"
></A
>FcLangSetAdd</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2168"
></A
><H2
>Name</H2
>FcLangSetAdd&nbsp;--&nbsp;add a language to a langset</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2171"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2172"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcLangSetAdd</CODE
>(FcLangSet *ls, const FcChar8 *lang);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2181"
></A
><H2
>Description</H2
><P
><CODE
CLASS="PARAMETER"
>lang</CODE
> is added to <CODE
CLASS="PARAMETER"
>ls</CODE
>.
<CODE
CLASS="PARAMETER"
>lang</CODE
> should be of the form Ll-Tt where Ll is a
two or three letter language from ISO 639 and Tt is a territory from ISO
3166.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2187"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCLANGSETDEL"
></A
>FcLangSetDel</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2194"
></A
><H2
>Name</H2
>FcLangSetDel&nbsp;--&nbsp;delete a language from a langset</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2197"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2198"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcLangSetDel</CODE
>(FcLangSet *ls, const FcChar8 *lang);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2207"
></A
><H2
>Description</H2
><P
><CODE
CLASS="PARAMETER"
>lang</CODE
> is removed from <CODE
CLASS="PARAMETER"
>ls</CODE
>.
<CODE
CLASS="PARAMETER"
>lang</CODE
> should be of the form Ll-Tt where Ll is a
two or three letter language from ISO 639 and Tt is a territory from ISO
3166.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2213"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCLANGSETUNION"
></A
>FcLangSetUnion</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2220"
></A
><H2
>Name</H2
>FcLangSetUnion&nbsp;--&nbsp;Add langsets</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2223"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2224"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcLangSet * FcLangSetUnion</CODE
>(const FcLangSet *ls_a, const FcLangSet *ls_b);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2233"
></A
><H2
>Description</H2
><P
>Returns a set including only those languages found in either <CODE
CLASS="PARAMETER"
>ls_a</CODE
> or <CODE
CLASS="PARAMETER"
>ls_b</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2238"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCLANGSETSUBTRACT"
></A
>FcLangSetSubtract</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2245"
></A
><H2
>Name</H2
>FcLangSetSubtract&nbsp;--&nbsp;Subtract langsets</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2248"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2249"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcLangSet * FcLangSetSubtract</CODE
>(const FcLangSet *ls_a, const FcLangSet *ls_b);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2258"
></A
><H2
>Description</H2
><P
>Returns a set including only those languages found in <CODE
CLASS="PARAMETER"
>ls_a</CODE
> but not in <CODE
CLASS="PARAMETER"
>ls_b</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2263"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCLANGSETCOMPARE"
></A
>FcLangSetCompare</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2270"
></A
><H2
>Name</H2
>FcLangSetCompare&nbsp;--&nbsp;compare language sets</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2273"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2274"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcLangResult FcLangSetCompare</CODE
>(const FcLangSet *ls_a, const FcLangSet *ls_b);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2283"
></A
><H2
>Description</H2
><P
><CODE
CLASS="FUNCTION"
>FcLangSetCompare</CODE
> compares language coverage for
<CODE
CLASS="PARAMETER"
>ls_a</CODE
> and <CODE
CLASS="PARAMETER"
>ls_b</CODE
>. If they share
any language and territory pair, this function returns FcLangEqual. If they
share a language but differ in which territory that language is for, this
function returns FcLangDifferentTerritory. If they share no languages in
common, this function returns FcLangDifferentLang.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2289"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCLANGSETCONTAINS"
></A
>FcLangSetContains</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2296"
></A
><H2
>Name</H2
>FcLangSetContains&nbsp;--&nbsp;check langset subset relation</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2299"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2300"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcLangSetContains</CODE
>(const FcLangSet *ls_a, const FcLangSet *ls_b);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2309"
></A
><H2
>Description</H2
><P
><CODE
CLASS="FUNCTION"
>FcLangSetContains</CODE
> returns FcTrue if
<CODE
CLASS="PARAMETER"
>ls_a</CODE
> contains every language in
<CODE
CLASS="PARAMETER"
>ls_b</CODE
>. <CODE
CLASS="PARAMETER"
>ls_a</CODE
> will 'contain' a
language from <CODE
CLASS="PARAMETER"
>ls_b</CODE
> if <CODE
CLASS="PARAMETER"
>ls_a</CODE
>
has exactly the language, or either the language or
<CODE
CLASS="PARAMETER"
>ls_a</CODE
> has no territory.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2319"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCLANGSETEQUAL"
></A
>FcLangSetEqual</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2326"
></A
><H2
>Name</H2
>FcLangSetEqual&nbsp;--&nbsp;test for matching langsets</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2329"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2330"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcLangSetEqual</CODE
>(const FcLangSet *ls_a, const FcLangSet *ls_b);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2339"
></A
><H2
>Description</H2
><P
>Returns FcTrue if and only if <CODE
CLASS="PARAMETER"
>ls_a</CODE
> supports precisely
the same language and territory combinations as <CODE
CLASS="PARAMETER"
>ls_b</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2344"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCLANGSETHASH"
></A
>FcLangSetHash</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2351"
></A
><H2
>Name</H2
>FcLangSetHash&nbsp;--&nbsp;return a hash value for a langset</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2354"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2355"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcChar32 FcLangSetHash</CODE
>(const FcLangSet *ls);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2362"
></A
><H2
>Description</H2
><P
>This function returns a value which depends solely on the languages
supported by <CODE
CLASS="PARAMETER"
>ls</CODE
>. Any language which equals
<CODE
CLASS="PARAMETER"
>ls</CODE
> will have the same result from
<CODE
CLASS="FUNCTION"
>FcLangSetHash</CODE
>. However, two langsets with the same hash
value may not be equal.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2368"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCLANGSETHASLANG"
></A
>FcLangSetHasLang</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2375"
></A
><H2
>Name</H2
>FcLangSetHasLang&nbsp;--&nbsp;test langset for language support</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2378"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2379"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcLangResult FcLangSetHasLang</CODE
>(const FcLangSet *ls, const FcChar8 *lang);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2388"
></A
><H2
>Description</H2
><P
><CODE
CLASS="FUNCTION"
>FcLangSetHasLang</CODE
> checks whether
<CODE
CLASS="PARAMETER"
>ls</CODE
> supports <CODE
CLASS="PARAMETER"
>lang</CODE
>. If 
<CODE
CLASS="PARAMETER"
>ls</CODE
> has a matching language and territory pair,
this function returns FcLangEqual. If <CODE
CLASS="PARAMETER"
>ls</CODE
> has
a matching language but differs in which territory that language is for, this
function returns FcLangDifferentTerritory. If <CODE
CLASS="PARAMETER"
>ls</CODE
> 
has no matching language, this function returns FcLangDifferentLang.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2397"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCLANGSETGETLANGS"
></A
>FcLangSetGetLangs</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2404"
></A
><H2
>Name</H2
>FcLangSetGetLangs&nbsp;--&nbsp;get the list of languages in the langset</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2407"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2408"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcStrSet * FcLangSetGetLangs</CODE
>(const FcLangSet *ls);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2415"
></A
><H2
>Description</H2
><P
>Returns a string set of all languages in <CODE
CLASS="PARAMETER"
>langset</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2419"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCGETLANGS"
></A
>FcGetLangs</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2426"
></A
><H2
>Name</H2
>FcGetLangs&nbsp;--&nbsp;Get list of languages</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2429"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2430"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcStrSet * FcGetLangs</CODE
>(void);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2437"
></A
><H2
>Description</H2
><P
>Returns a string set of all known languages.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2440"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCLANGGETCHARSET"
></A
>FcLangGetCharSet</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2447"
></A
><H2
>Name</H2
>FcLangGetCharSet&nbsp;--&nbsp;Get character map for a language</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2450"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2451"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>const FcCharSet * FcLangGetCharSet</CODE
>(const FcChar8 *lang);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2458"
></A
><H2
>Description</H2
><P
>Returns the FcCharMap for a language.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2461"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN2464"
>4.9. FcMatrix</A
></H3
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="#FCMATRIXINIT"
>FcMatrixInit</A
>&nbsp;--&nbsp;initialize an FcMatrix structure</DT
><DT
><A
HREF="#FCMATRIXCOPY"
>FcMatrixCopy</A
>&nbsp;--&nbsp;Copy a matrix</DT
><DT
><A
HREF="#FCMATRIXEQUAL"
>FcMatrixEqual</A
>&nbsp;--&nbsp;Compare two matrices</DT
><DT
><A
HREF="#FCMATRIXMULTIPLY"
>FcMatrixMultiply</A
>&nbsp;--&nbsp;Multiply matrices</DT
><DT
><A
HREF="#FCMATRIXROTATE"
>FcMatrixRotate</A
>&nbsp;--&nbsp;Rotate a matrix</DT
><DT
><A
HREF="#FCMATRIXSCALE"
>FcMatrixScale</A
>&nbsp;--&nbsp;Scale a matrix</DT
><DT
><A
HREF="#FCMATRIXSHEAR"
>FcMatrixShear</A
>&nbsp;--&nbsp;Shear a matrix</DT
></DL
></DIV
><P
>FcMatrix structures hold an affine transformation in matrix form.
    </P
><H1
><A
NAME="FCMATRIXINIT"
></A
>FcMatrixInit</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2471"
></A
><H2
>Name</H2
>FcMatrixInit&nbsp;--&nbsp;initialize an FcMatrix structure</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2474"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2475"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcMatrixInit</CODE
>(FcMatrix *matrix);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2482"
></A
><H2
>Description</H2
><P
><CODE
CLASS="FUNCTION"
>FcMatrixInit</CODE
> initializes <CODE
CLASS="PARAMETER"
>matrix</CODE
>
to the identity matrix.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2487"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCMATRIXCOPY"
></A
>FcMatrixCopy</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2494"
></A
><H2
>Name</H2
>FcMatrixCopy&nbsp;--&nbsp;Copy a matrix</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2497"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2498"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcMatrixCopy</CODE
>(const FcMatrix *matrix);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2505"
></A
><H2
>Description</H2
><P
><CODE
CLASS="FUNCTION"
>FcMatrixCopy</CODE
> allocates a new FcMatrix
and copies <CODE
CLASS="PARAMETER"
>mat</CODE
> into it.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2510"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCMATRIXEQUAL"
></A
>FcMatrixEqual</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2517"
></A
><H2
>Name</H2
>FcMatrixEqual&nbsp;--&nbsp;Compare two matrices</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2520"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2521"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcMatrixEqual</CODE
>(const FcMatrix *matrix1, const FcMatrix *matrix2);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2530"
></A
><H2
>Description</H2
><P
><CODE
CLASS="FUNCTION"
>FcMatrixEqual</CODE
> compares <CODE
CLASS="PARAMETER"
>matrix1</CODE
>
and <CODE
CLASS="PARAMETER"
>matrix2</CODE
> returning FcTrue when they are equal and
FcFalse when they are not.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2536"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCMATRIXMULTIPLY"
></A
>FcMatrixMultiply</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2543"
></A
><H2
>Name</H2
>FcMatrixMultiply&nbsp;--&nbsp;Multiply matrices</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2546"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2547"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcMatrixMultiply</CODE
>(FcMatrix *result, const FcMatrix *matrix1, const FcMatrix *matrix2);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2558"
></A
><H2
>Description</H2
><P
><CODE
CLASS="FUNCTION"
>FcMatrixMultiply</CODE
> multiplies
<CODE
CLASS="PARAMETER"
>matrix1</CODE
> and <CODE
CLASS="PARAMETER"
>matrix2</CODE
> storing
the result in <CODE
CLASS="PARAMETER"
>result</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2565"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCMATRIXROTATE"
></A
>FcMatrixRotate</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2572"
></A
><H2
>Name</H2
>FcMatrixRotate&nbsp;--&nbsp;Rotate a matrix</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2575"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2576"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcMatrixRotate</CODE
>(FcMatrix *matrix, double cos, double sin);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2587"
></A
><H2
>Description</H2
><P
><CODE
CLASS="FUNCTION"
>FcMatrixRotate</CODE
> rotates <CODE
CLASS="PARAMETER"
>matrix</CODE
>
by the angle who's sine is <CODE
CLASS="PARAMETER"
>sin</CODE
> and cosine is
<CODE
CLASS="PARAMETER"
>cos</CODE
>.  This is done by multiplying by the
matrix:
<PRE
CLASS="PROGRAMLISTING"
>  cos -sin
  sin  cos</PRE
>
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2595"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCMATRIXSCALE"
></A
>FcMatrixScale</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2602"
></A
><H2
>Name</H2
>FcMatrixScale&nbsp;--&nbsp;Scale a matrix</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2605"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2606"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcMatrixScale</CODE
>(FcMatrix *matrix, double sx, double dy);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2617"
></A
><H2
>Description</H2
><P
><CODE
CLASS="FUNCTION"
>FcMatrixScale</CODE
> multiplies <CODE
CLASS="PARAMETER"
>matrix</CODE
>
x values by <CODE
CLASS="PARAMETER"
>sx</CODE
> and y values by
<CODE
CLASS="PARAMETER"
>dy</CODE
>.  This is done by multiplying by
the matrix:
<PRE
CLASS="PROGRAMLISTING"
>   sx  0
   0   dy</PRE
>
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2625"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCMATRIXSHEAR"
></A
>FcMatrixShear</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2632"
></A
><H2
>Name</H2
>FcMatrixShear&nbsp;--&nbsp;Shear a matrix</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2635"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2636"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcMatrixShear</CODE
>(FcMatrix *matrix, double sh, double sv);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2647"
></A
><H2
>Description</H2
><P
><CODE
CLASS="FUNCTION"
>FcMatrixShare</CODE
> shears <CODE
CLASS="PARAMETER"
>matrix</CODE
>
horizontally by <CODE
CLASS="PARAMETER"
>sh</CODE
> and vertically by
<CODE
CLASS="PARAMETER"
>sv</CODE
>.  This is done by multiplying by
the matrix:
<PRE
CLASS="PROGRAMLISTING"
>  1  sh
  sv  1</PRE
>
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2655"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN2658"
>4.10. FcConfig</A
></H3
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="#FCCONFIGCREATE"
>FcConfigCreate</A
>&nbsp;--&nbsp;Create a configuration</DT
><DT
><A
HREF="#FCCONFIGREFERENCE"
>FcConfigReference</A
>&nbsp;--&nbsp;Increment config reference count</DT
><DT
><A
HREF="#FCCONFIGDESTROY"
>FcConfigDestroy</A
>&nbsp;--&nbsp;Destroy a configuration</DT
><DT
><A
HREF="#FCCONFIGSETCURRENT"
>FcConfigSetCurrent</A
>&nbsp;--&nbsp;Set configuration as default</DT
><DT
><A
HREF="#FCCONFIGGETCURRENT"
>FcConfigGetCurrent</A
>&nbsp;--&nbsp;Return current configuration</DT
><DT
><A
HREF="#FCCONFIGUPTODATE"
>FcConfigUptoDate</A
>&nbsp;--&nbsp;Check timestamps on config files</DT
><DT
><A
HREF="#FCCONFIGHOME"
>FcConfigHome</A
>&nbsp;--&nbsp;return the current home directory.</DT
><DT
><A
HREF="#FCCONFIGENABLEHOME"
>FcConfigEnableHome</A
>&nbsp;--&nbsp;controls use of the home directory.</DT
><DT
><A
HREF="#FCCONFIGBUILDFONTS"
>FcConfigBuildFonts</A
>&nbsp;--&nbsp;Build font database</DT
><DT
><A
HREF="#FCCONFIGGETCONFIGDIRS"
>FcConfigGetConfigDirs</A
>&nbsp;--&nbsp;Get config directories</DT
><DT
><A
HREF="#FCCONFIGGETFONTDIRS"
>FcConfigGetFontDirs</A
>&nbsp;--&nbsp;Get font directories</DT
><DT
><A
HREF="#FCCONFIGGETCONFIGFILES"
>FcConfigGetConfigFiles</A
>&nbsp;--&nbsp;Get config files</DT
><DT
><A
HREF="#FCCONFIGGETCACHE"
>FcConfigGetCache</A
>&nbsp;--&nbsp;DEPRECATED used to return per-user cache filename</DT
><DT
><A
HREF="#FCCONFIGGETCACHEDIRS"
>FcConfigGetCacheDirs</A
>&nbsp;--&nbsp;return the list of directories searched for cache files</DT
><DT
><A
HREF="#FCCONFIGGETFONTS"
>FcConfigGetFonts</A
>&nbsp;--&nbsp;Get config font set</DT
><DT
><A
HREF="#FCCONFIGGETBLANKS"
>FcConfigGetBlanks</A
>&nbsp;--&nbsp;Get config blanks</DT
><DT
><A
HREF="#FCCONFIGGETRESCANINTERVAL"
>FcConfigGetRescanInterval</A
>&nbsp;--&nbsp;Get config rescan interval</DT
><DT
><A
HREF="#FCCONFIGSETRESCANINTERVAL"
>FcConfigSetRescanInterval</A
>&nbsp;--&nbsp;Set config rescan interval</DT
><DT
><A
HREF="#FCCONFIGAPPFONTADDFILE"
>FcConfigAppFontAddFile</A
>&nbsp;--&nbsp;Add font file to font database</DT
><DT
><A
HREF="#FCCONFIGAPPFONTADDDIR"
>FcConfigAppFontAddDir</A
>&nbsp;--&nbsp;Add fonts from directory to font database</DT
><DT
><A
HREF="#FCCONFIGAPPFONTCLEAR"
>FcConfigAppFontClear</A
>&nbsp;--&nbsp;Remove all app fonts from font database</DT
><DT
><A
HREF="#FCCONFIGSUBSTITUTEWITHPAT"
>FcConfigSubstituteWithPat</A
>&nbsp;--&nbsp;Execute substitutions</DT
><DT
><A
HREF="#FCCONFIGSUBSTITUTE"
>FcConfigSubstitute</A
>&nbsp;--&nbsp;Execute substitutions</DT
><DT
><A
HREF="#FCFONTMATCH"
>FcFontMatch</A
>&nbsp;--&nbsp;Return best font</DT
><DT
><A
HREF="#FCFONTSORT"
>FcFontSort</A
>&nbsp;--&nbsp;Return list of matching fonts</DT
><DT
><A
HREF="#FCFONTRENDERPREPARE"
>FcFontRenderPrepare</A
>&nbsp;--&nbsp;Prepare pattern for loading font file</DT
><DT
><A
HREF="#FCFONTLIST"
>FcFontList</A
>&nbsp;--&nbsp;List fonts</DT
><DT
><A
HREF="#FCCONFIGFILENAME"
>FcConfigFilename</A
>&nbsp;--&nbsp;Find a config file</DT
><DT
><A
HREF="#FCCONFIGPARSEANDLOAD"
>FcConfigParseAndLoad</A
>&nbsp;--&nbsp;load a configuration file</DT
></DL
></DIV
><P
>An FcConfig object holds the internal representation of a configuration.
There is a default configuration which applications may use by passing 0 to
any function using the data within an FcConfig.
    </P
><H1
><A
NAME="FCCONFIGCREATE"
></A
>FcConfigCreate</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2665"
></A
><H2
>Name</H2
>FcConfigCreate&nbsp;--&nbsp;Create a configuration</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2668"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2669"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcConfig * FcConfigCreate</CODE
>(void);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2676"
></A
><H2
>Description</H2
><P
>Creates an empty configuration.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2679"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCONFIGREFERENCE"
></A
>FcConfigReference</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2686"
></A
><H2
>Name</H2
>FcConfigReference&nbsp;--&nbsp;Increment config reference count</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2689"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2690"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcConfig * FcConfigReference</CODE
>(FcConfig *config);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2697"
></A
><H2
>Description</H2
><P
>Add another reference to <CODE
CLASS="PARAMETER"
>config</CODE
>. Configs are freed only
when the reference count reaches zero.
If <CODE
CLASS="PARAMETER"
>config</CODE
> is NULL, the current configuration is used.
In that case this function will be similar to FcConfigGetCurrent() except that
it increments the reference count before returning and the user is responsible
for destroying the configuration when not needed anymore.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2702"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCONFIGDESTROY"
></A
>FcConfigDestroy</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2709"
></A
><H2
>Name</H2
>FcConfigDestroy&nbsp;--&nbsp;Destroy a configuration</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2712"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2713"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcConfigDestroy</CODE
>(FcConfig *config);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2720"
></A
><H2
>Description</H2
><P
>Decrements the config reference count. If all references are gone, destroys
the configuration and any data associated with it.
Note that calling this function with the return from FcConfigGetCurrent will
cause a new configuration to be created for use as current configuration.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2723"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCONFIGSETCURRENT"
></A
>FcConfigSetCurrent</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2730"
></A
><H2
>Name</H2
>FcConfigSetCurrent&nbsp;--&nbsp;Set configuration as default</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2733"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2734"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcConfigSetCurrent</CODE
>(FcConfig *config);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2741"
></A
><H2
>Description</H2
><P
>Sets the current default configuration to <CODE
CLASS="PARAMETER"
>config</CODE
>.  Implicitly calls
FcConfigBuildFonts if necessary, returning FcFalse if that call fails.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2745"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCONFIGGETCURRENT"
></A
>FcConfigGetCurrent</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2752"
></A
><H2
>Name</H2
>FcConfigGetCurrent&nbsp;--&nbsp;Return current configuration</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2755"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2756"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcConfig * FcConfigGetCurrent</CODE
>(void);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2763"
></A
><H2
>Description</H2
><P
>Returns the current default configuration.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2766"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCONFIGUPTODATE"
></A
>FcConfigUptoDate</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2773"
></A
><H2
>Name</H2
>FcConfigUptoDate&nbsp;--&nbsp;Check timestamps on config files</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2776"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2777"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcConfigUptoDate</CODE
>(FcConfig *config);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2784"
></A
><H2
>Description</H2
><P
>Checks all of the files related to <CODE
CLASS="PARAMETER"
>config</CODE
> and returns
whether any of them has been modified since the configuration was created.
If <CODE
CLASS="PARAMETER"
>config</CODE
> is NULL, the current configuration is used.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2789"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCONFIGHOME"
></A
>FcConfigHome</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2796"
></A
><H2
>Name</H2
>FcConfigHome&nbsp;--&nbsp;return the current home directory.</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2799"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2800"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcChar8 * FcConfigHome</CODE
>(void);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2807"
></A
><H2
>Description</H2
><P
>Return the current user's home directory, if it is available, and if using it
is enabled, and NULL otherwise.
See also <CODE
CLASS="FUNCTION"
>FcConfigEnableHome</CODE
>).
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2811"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCONFIGENABLEHOME"
></A
>FcConfigEnableHome</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2818"
></A
><H2
>Name</H2
>FcConfigEnableHome&nbsp;--&nbsp;controls use of the home directory.</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2821"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2822"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcConfigEnableHome</CODE
>(FcBool enable);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2829"
></A
><H2
>Description</H2
><P
>If <CODE
CLASS="PARAMETER"
>enable</CODE
> is FcTrue, then Fontconfig will use various
files which are specified relative to the user's home directory (using the ~
notation in the configuration). When <CODE
CLASS="PARAMETER"
>enable</CODE
> is
FcFalse, then all use of the home directory in these contexts will be
disabled. The previous setting of the value is returned.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2834"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCONFIGBUILDFONTS"
></A
>FcConfigBuildFonts</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2841"
></A
><H2
>Name</H2
>FcConfigBuildFonts&nbsp;--&nbsp;Build font database</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2844"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2845"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcConfigBuildFonts</CODE
>(FcConfig *config);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2852"
></A
><H2
>Description</H2
><P
>Builds the set of available fonts for the given configuration.  Note that
any changes to the configuration after this call have indeterminate effects.
Returns FcFalse if this operation runs out of memory.
If <CODE
CLASS="PARAMETER"
>config</CODE
> is NULL, the current configuration is used.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2856"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCONFIGGETCONFIGDIRS"
></A
>FcConfigGetConfigDirs</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2863"
></A
><H2
>Name</H2
>FcConfigGetConfigDirs&nbsp;--&nbsp;Get config directories</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2866"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2867"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcStrList * FcConfigGetConfigDirs</CODE
>(FcConfig *config);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2874"
></A
><H2
>Description</H2
><P
>Returns the list of font directories specified in the configuration files
for <CODE
CLASS="PARAMETER"
>config</CODE
>.  Does not include any subdirectories.
If <CODE
CLASS="PARAMETER"
>config</CODE
> is NULL, the current configuration is used.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2879"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCONFIGGETFONTDIRS"
></A
>FcConfigGetFontDirs</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2886"
></A
><H2
>Name</H2
>FcConfigGetFontDirs&nbsp;--&nbsp;Get font directories</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2889"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2890"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcStrList * FcConfigGetFontDirs</CODE
>(FcConfig *config);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2897"
></A
><H2
>Description</H2
><P
>Returns the list of font directories in <CODE
CLASS="PARAMETER"
>config</CODE
>. This includes the
configured font directories along with any directories below those in the
filesystem.
If <CODE
CLASS="PARAMETER"
>config</CODE
> is NULL, the current configuration is used.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2902"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCONFIGGETCONFIGFILES"
></A
>FcConfigGetConfigFiles</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2909"
></A
><H2
>Name</H2
>FcConfigGetConfigFiles&nbsp;--&nbsp;Get config files</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2912"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2913"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcStrList * FcConfigGetConfigFiles</CODE
>(FcConfig *config);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2920"
></A
><H2
>Description</H2
><P
>Returns the list of known configuration files used to generate <CODE
CLASS="PARAMETER"
>config</CODE
>.
If <CODE
CLASS="PARAMETER"
>config</CODE
> is NULL, the current configuration is used.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2925"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCONFIGGETCACHE"
></A
>FcConfigGetCache</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2932"
></A
><H2
>Name</H2
>FcConfigGetCache&nbsp;--&nbsp;DEPRECATED used to return per-user cache filename</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2935"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2936"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcChar8 * FcConfigGetCache</CODE
>(FcConfig *config);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2943"
></A
><H2
>Description</H2
><P
>With fontconfig no longer using per-user cache files, this function now
simply returns NULL to indicate that no per-user file exists.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2946"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCONFIGGETCACHEDIRS"
></A
>FcConfigGetCacheDirs</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2953"
></A
><H2
>Name</H2
>FcConfigGetCacheDirs&nbsp;--&nbsp;return the list of directories searched for cache files</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2956"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2957"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcStrList * FcConfigGetCacheDirs</CODE
>(FcConfig *config);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2964"
></A
><H2
>Description</H2
><P
><CODE
CLASS="FUNCTION"
>FcConfigGetCacheDirs</CODE
> returns a string list containing
all of the directories that fontconfig will search when attempting to load a
cache file for a font directory.
If <CODE
CLASS="PARAMETER"
>config</CODE
> is NULL, the current configuration is used.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2969"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCONFIGGETFONTS"
></A
>FcConfigGetFonts</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2976"
></A
><H2
>Name</H2
>FcConfigGetFonts&nbsp;--&nbsp;Get config font set</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2979"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN2980"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcFontSet * FcConfigGetFonts</CODE
>(FcConfig *config, FcSetName set);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2989"
></A
><H2
>Description</H2
><P
>Returns one of the two sets of fonts from the configuration as specified
by <CODE
CLASS="PARAMETER"
>set</CODE
>. This font set is owned by the library and must
not be modified or freed.
If <CODE
CLASS="PARAMETER"
>config</CODE
> is NULL, the current configuration is used.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2994"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCONFIGGETBLANKS"
></A
>FcConfigGetBlanks</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3001"
></A
><H2
>Name</H2
>FcConfigGetBlanks&nbsp;--&nbsp;Get config blanks</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3004"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3005"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBlanks * FcConfigGetBlanks</CODE
>(FcConfig *config);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3012"
></A
><H2
>Description</H2
><P
>Returns the FcBlanks object associated with the given configuration, if no
blanks were present in the configuration, this function will return 0.
The returned FcBlanks object if not NULL, is valid as long as the owning
FcConfig is alive.
If <CODE
CLASS="PARAMETER"
>config</CODE
> is NULL, the current configuration is used.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3016"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCONFIGGETRESCANINTERVAL"
></A
>FcConfigGetRescanInterval</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3023"
></A
><H2
>Name</H2
>FcConfigGetRescanInterval&nbsp;--&nbsp;Get config rescan interval</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3026"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3027"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>int FcConfigGetRescanInterval</CODE
>(FcConfig *config);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3034"
></A
><H2
>Description</H2
><P
>Returns the interval between automatic checks of the configuration (in
seconds) specified in <CODE
CLASS="PARAMETER"
>config</CODE
>.  The configuration is checked during
a call to FcFontList when this interval has passed since the last check.
An interval setting of zero disables automatic checks.
If <CODE
CLASS="PARAMETER"
>config</CODE
> is NULL, the current configuration is used.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3039"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCONFIGSETRESCANINTERVAL"
></A
>FcConfigSetRescanInterval</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3046"
></A
><H2
>Name</H2
>FcConfigSetRescanInterval&nbsp;--&nbsp;Set config rescan interval</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3049"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3050"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcConfigSetRescanInterval</CODE
>(FcConfig *config, int rescanInterval);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3059"
></A
><H2
>Description</H2
><P
>Sets the rescan interval. Returns FcFalse if the interval cannot be set (due
to allocation failure). Otherwise returns FcTrue.
An interval setting of zero disables automatic checks.
If <CODE
CLASS="PARAMETER"
>config</CODE
> is NULL, the current configuration is used.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3063"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCONFIGAPPFONTADDFILE"
></A
>FcConfigAppFontAddFile</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3070"
></A
><H2
>Name</H2
>FcConfigAppFontAddFile&nbsp;--&nbsp;Add font file to font database</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3073"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3074"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcConfigAppFontAddFile</CODE
>(FcConfig *config, const FcChar8 *file);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3083"
></A
><H2
>Description</H2
><P
>Adds an application-specific font to the configuration. Returns FcFalse
if the fonts cannot be added (due to allocation failure). Otherwise returns FcTrue.
If <CODE
CLASS="PARAMETER"
>config</CODE
> is NULL, the current configuration is used.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3087"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCONFIGAPPFONTADDDIR"
></A
>FcConfigAppFontAddDir</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3094"
></A
><H2
>Name</H2
>FcConfigAppFontAddDir&nbsp;--&nbsp;Add fonts from directory to font database</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3097"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3098"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcConfigAppFontAddDir</CODE
>(FcConfig *config, const FcChar8 *dir);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3107"
></A
><H2
>Description</H2
><P
>Scans the specified directory for fonts, adding each one found to the
application-specific set of fonts. Returns FcFalse
if the fonts cannot be added (due to allocation failure). Otherwise returns FcTrue.
If <CODE
CLASS="PARAMETER"
>config</CODE
> is NULL, the current configuration is used.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3111"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCONFIGAPPFONTCLEAR"
></A
>FcConfigAppFontClear</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3118"
></A
><H2
>Name</H2
>FcConfigAppFontClear&nbsp;--&nbsp;Remove all app fonts from font database</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3121"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3122"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcConfigAppFontClear</CODE
>(FcConfig *config);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3129"
></A
><H2
>Description</H2
><P
>Clears the set of application-specific fonts.
If <CODE
CLASS="PARAMETER"
>config</CODE
> is NULL, the current configuration is used.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3133"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCONFIGSUBSTITUTEWITHPAT"
></A
>FcConfigSubstituteWithPat</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3140"
></A
><H2
>Name</H2
>FcConfigSubstituteWithPat&nbsp;--&nbsp;Execute substitutions</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3143"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3144"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcConfigSubstituteWithPat</CODE
>(FcConfig *config, FcPattern *p, FcPattern *p_pat, FcMatchKind kind);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3157"
></A
><H2
>Description</H2
><P
>Performs the sequence of pattern modification operations, if <CODE
CLASS="PARAMETER"
>kind</CODE
> is
FcMatchPattern, then those tagged as pattern operations are applied, else
if <CODE
CLASS="PARAMETER"
>kind</CODE
> is FcMatchFont, those tagged as font operations are applied and
p_pat is used for &lt;test&gt; elements with target=pattern. Returns FcFalse
if the substitution cannot be performed (due to allocation failure). Otherwise returns FcTrue.
If <CODE
CLASS="PARAMETER"
>config</CODE
> is NULL, the current configuration is used.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3163"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCONFIGSUBSTITUTE"
></A
>FcConfigSubstitute</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3170"
></A
><H2
>Name</H2
>FcConfigSubstitute&nbsp;--&nbsp;Execute substitutions</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3173"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3174"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcConfigSubstitute</CODE
>(FcConfig *config, FcPattern *p, FcMatchKind kind);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3185"
></A
><H2
>Description</H2
><P
>Calls FcConfigSubstituteWithPat setting p_pat to NULL. Returns FcFalse
if the substitution cannot be performed (due to allocation failure). Otherwise returns FcTrue.
If <CODE
CLASS="PARAMETER"
>config</CODE
> is NULL, the current configuration is used.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3189"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCFONTMATCH"
></A
>FcFontMatch</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3196"
></A
><H2
>Name</H2
>FcFontMatch&nbsp;--&nbsp;Return best font</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3199"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3200"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcPattern * FcFontMatch</CODE
>(FcConfig *config, FcPattern *p, FcResult *result);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3211"
></A
><H2
>Description</H2
><P
>Finds the font in <CODE
CLASS="PARAMETER"
>sets</CODE
> most closely matching
<CODE
CLASS="PARAMETER"
>pattern</CODE
> and returns the result of
<CODE
CLASS="FUNCTION"
>FcFontRenderPrepare</CODE
> for that font and the provided
pattern. This function should be called only after
<CODE
CLASS="FUNCTION"
>FcConfigSubstitute</CODE
> and
<CODE
CLASS="FUNCTION"
>FcDefaultSubstitute</CODE
> have been called for
<CODE
CLASS="PARAMETER"
>p</CODE
>; otherwise the results will not be correct.
If <CODE
CLASS="PARAMETER"
>config</CODE
> is NULL, the current configuration is used.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3221"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCFONTSORT"
></A
>FcFontSort</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3228"
></A
><H2
>Name</H2
>FcFontSort&nbsp;--&nbsp;Return list of matching fonts</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3231"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3232"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcFontSet * FcFontSort</CODE
>(FcConfig *config, FcPattern *p, FcBool trim, FcCharSet **csp, FcResult *result);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3247"
></A
><H2
>Description</H2
><P
>Returns the list of fonts sorted by closeness to <CODE
CLASS="PARAMETER"
>p</CODE
>.  If <CODE
CLASS="PARAMETER"
>trim</CODE
> is FcTrue,
elements in the list which don't include Unicode coverage not provided by
earlier elements in the list are elided.  The union of Unicode coverage of
all of the fonts is returned in <CODE
CLASS="PARAMETER"
>csp</CODE
>, if <CODE
CLASS="PARAMETER"
>csp</CODE
> is not NULL.  This function
should be called only after FcConfigSubstitute and FcDefaultSubstitute have
been called for <CODE
CLASS="PARAMETER"
>p</CODE
>; otherwise the results will not be correct.
    </P
><P
>The returned FcFontSet references FcPattern structures which may be shared
by the return value from multiple FcFontSort calls, applications must not
modify these patterns.  Instead, they should be passed, along with <CODE
CLASS="PARAMETER"
>p</CODE
> to
<CODE
CLASS="FUNCTION"
>FcFontRenderPrepare</CODE
> which combines them into a complete pattern.
    </P
><P
>The FcFontSet returned by FcFontSort is destroyed by calling FcFontSetDestroy.
If <CODE
CLASS="PARAMETER"
>config</CODE
> is NULL, the current configuration is used.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3260"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCFONTRENDERPREPARE"
></A
>FcFontRenderPrepare</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3267"
></A
><H2
>Name</H2
>FcFontRenderPrepare&nbsp;--&nbsp;Prepare pattern for loading font file</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3270"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3271"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcPattern * FcFontRenderPrepare</CODE
>(FcConfig *config, FcPattern *pat, FcPattern *font);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3282"
></A
><H2
>Description</H2
><P
>Creates a new pattern consisting of elements of <CODE
CLASS="PARAMETER"
>font</CODE
> not appearing
in <CODE
CLASS="PARAMETER"
>pat</CODE
>, elements of <CODE
CLASS="PARAMETER"
>pat</CODE
> not appearing in <CODE
CLASS="PARAMETER"
>font</CODE
> and the best matching
value from <CODE
CLASS="PARAMETER"
>pat</CODE
> for elements appearing in both.  The result is passed to
FcConfigSubstituteWithPat with <CODE
CLASS="PARAMETER"
>kind</CODE
> FcMatchFont and then returned.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3291"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCFONTLIST"
></A
>FcFontList</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3298"
></A
><H2
>Name</H2
>FcFontList&nbsp;--&nbsp;List fonts</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3301"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3302"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcFontSet * FcFontList</CODE
>(FcConfig *config, FcPattern *p, FcObjectSet *os);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3313"
></A
><H2
>Description</H2
><P
>Selects fonts matching <CODE
CLASS="PARAMETER"
>p</CODE
>, creates patterns from those fonts containing
only the objects in <CODE
CLASS="PARAMETER"
>os</CODE
> and returns the set of unique such patterns.
If <CODE
CLASS="PARAMETER"
>config</CODE
> is NULL, the default configuration is checked
to be up to date, and used.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3319"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCONFIGFILENAME"
></A
>FcConfigFilename</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3326"
></A
><H2
>Name</H2
>FcConfigFilename&nbsp;--&nbsp;Find a config file</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3329"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3330"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcChar8 * FcConfigFilename</CODE
>(const FcChar8 *name);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3337"
></A
><H2
>Description</H2
><P
>Given the specified external entity name, return the associated filename.
This provides applications a way to convert various configuration file
references into filename form.
    </P
><P
>A null or empty <CODE
CLASS="PARAMETER"
>name</CODE
> indicates that the default configuration file should
be used; which file this references can be overridden with the
FC_CONFIG_FILE environment variable.  Next, if the name starts with <CODE
CLASS="PARAMETER"
>~</CODE
>, it
refers to a file in the current users home directory.  Otherwise if the name
doesn't start with '/', it refers to a file in the default configuration
directory; the built-in default directory can be overridden with the
FC_CONFIG_DIR environment variable.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3343"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCONFIGPARSEANDLOAD"
></A
>FcConfigParseAndLoad</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3350"
></A
><H2
>Name</H2
>FcConfigParseAndLoad&nbsp;--&nbsp;load a configuration file</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3353"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3354"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcConfigParseAndLoad</CODE
>(FcConfig *config, const FcChar8 *file, FcBool complain);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3365"
></A
><H2
>Description</H2
><P
>Walks the configuration in 'file' and constructs the internal representation
in 'config'.  Any include files referenced from within 'file' will be loaded
and parsed.  If 'complain' is FcFalse, no warning will be displayed if
'file' does not exist. Error and warning messages will be output to stderr.
Returns FcFalse if some error occurred while loading the file, either a
parse error, semantic error or allocation failure. Otherwise returns FcTrue.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3368"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN3371"
>4.11. FcObjectType</A
></H3
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="#FCNAMEREGISTEROBJECTTYPES"
>FcNameRegisterObjectTypes</A
>&nbsp;--&nbsp;Register object types</DT
><DT
><A
HREF="#FCNAMEUNREGISTEROBJECTTYPES"
>FcNameUnregisterObjectTypes</A
>&nbsp;--&nbsp;Unregister object types</DT
><DT
><A
HREF="#FCNAMEGETOBJECTTYPE"
>FcNameGetObjectType</A
>&nbsp;--&nbsp;Lookup an object type</DT
></DL
></DIV
><P
>Provides for application-specified font name object types so that new
pattern elements can be generated from font names.
    </P
><H1
><A
NAME="FCNAMEREGISTEROBJECTTYPES"
></A
>FcNameRegisterObjectTypes</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3378"
></A
><H2
>Name</H2
>FcNameRegisterObjectTypes&nbsp;--&nbsp;Register object types</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3381"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3382"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcNameRegisterObjectTypes</CODE
>(const FcObjectType *types, int ntype);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3391"
></A
><H2
>Description</H2
><P
>Register <CODE
CLASS="PARAMETER"
>ntype</CODE
> new object types. Returns FcFalse if
some of the names cannot be
registered (due to allocation failure). Otherwise returns FcTrue.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3395"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCNAMEUNREGISTEROBJECTTYPES"
></A
>FcNameUnregisterObjectTypes</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3402"
></A
><H2
>Name</H2
>FcNameUnregisterObjectTypes&nbsp;--&nbsp;Unregister object types</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3405"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3406"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcNameUnregisterObjectTypes</CODE
>(const FcObjectType *types, int ntype);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3415"
></A
><H2
>Description</H2
><P
>Unregister <CODE
CLASS="PARAMETER"
>ntype</CODE
> object types. Returns FcTrue.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3419"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCNAMEGETOBJECTTYPE"
></A
>FcNameGetObjectType</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3426"
></A
><H2
>Name</H2
>FcNameGetObjectType&nbsp;--&nbsp;Lookup an object type</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3429"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3430"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>const FcObjectType * FcNameGetObjectType</CODE
>(const char *object);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3437"
></A
><H2
>Description</H2
><P
>Return the object type for the pattern element named <CODE
CLASS="PARAMETER"
>object</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3441"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN3444"
>4.12. FcConstant</A
></H3
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="#FCNAMEREGISTERCONSTANTS"
>FcNameRegisterConstants</A
>&nbsp;--&nbsp;Register symbolic constants</DT
><DT
><A
HREF="#FCNAMEUNREGISTERCONSTANTS"
>FcNameUnregisterConstants</A
>&nbsp;--&nbsp;Unregister symbolic constants</DT
><DT
><A
HREF="#FCNAMEGETCONSTANT"
>FcNameGetConstant</A
>&nbsp;--&nbsp;Lookup symbolic constant</DT
><DT
><A
HREF="#FCNAMECONSTANT"
>FcNameConstant</A
>&nbsp;--&nbsp;Get the value for a symbolic constant</DT
></DL
></DIV
><P
>Provides for application-specified symbolic constants for font names.
    </P
><H1
><A
NAME="FCNAMEREGISTERCONSTANTS"
></A
>FcNameRegisterConstants</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3451"
></A
><H2
>Name</H2
>FcNameRegisterConstants&nbsp;--&nbsp;Register symbolic constants</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3454"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3455"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcNameRegisterConstants</CODE
>(const FcConstant *consts, int nconsts);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3464"
></A
><H2
>Description</H2
><P
>Register <CODE
CLASS="PARAMETER"
>nconsts</CODE
> new symbolic constants. Returns
FcFalse if the constants cannot be registered (due to allocation failure).
Otherwise returns FcTrue.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3468"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCNAMEUNREGISTERCONSTANTS"
></A
>FcNameUnregisterConstants</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3475"
></A
><H2
>Name</H2
>FcNameUnregisterConstants&nbsp;--&nbsp;Unregister symbolic constants</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3478"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3479"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcNameUnregisterConstants</CODE
>(const FcConstant *consts, int nconsts);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3488"
></A
><H2
>Description</H2
><P
>Unregister <CODE
CLASS="PARAMETER"
>nconsts</CODE
> symbolic constants. Returns
FcFalse if the specified constants were not registered. Otherwise returns
FcTrue.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3492"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCNAMEGETCONSTANT"
></A
>FcNameGetConstant</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3499"
></A
><H2
>Name</H2
>FcNameGetConstant&nbsp;--&nbsp;Lookup symbolic constant</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3502"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3503"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>const FcConstant * FcNameGetConstant</CODE
>(FcChar8 *string);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3510"
></A
><H2
>Description</H2
><P
>Return the FcConstant structure related to symbolic constant <CODE
CLASS="PARAMETER"
>string</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3514"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCNAMECONSTANT"
></A
>FcNameConstant</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3521"
></A
><H2
>Name</H2
>FcNameConstant&nbsp;--&nbsp;Get the value for a symbolic constant</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3524"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3525"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcNameConstant</CODE
>(FcChar8 *string, int *result);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3534"
></A
><H2
>Description</H2
><P
>Returns whether a symbolic constant with name <CODE
CLASS="PARAMETER"
>string</CODE
> is registered,
placing the value of the constant in <CODE
CLASS="PARAMETER"
>result</CODE
> if present.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3539"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN3542"
>4.13. FcBlanks</A
></H3
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="#FCBLANKSCREATE"
>FcBlanksCreate</A
>&nbsp;--&nbsp;Create an FcBlanks</DT
><DT
><A
HREF="#FCBLANKSDESTROY"
>FcBlanksDestroy</A
>&nbsp;--&nbsp;Destroy and FcBlanks</DT
><DT
><A
HREF="#FCBLANKSADD"
>FcBlanksAdd</A
>&nbsp;--&nbsp;Add a character to an FcBlanks</DT
><DT
><A
HREF="#FCBLANKSISMEMBER"
>FcBlanksIsMember</A
>&nbsp;--&nbsp;Query membership in an FcBlanks</DT
></DL
></DIV
><P
>An FcBlanks object holds a list of Unicode chars which are expected to
be blank when drawn.  When scanning new fonts, any glyphs which are
empty and not in this list will be assumed to be broken and not placed in
the FcCharSet associated with the font.  This provides a significantly more
accurate CharSet for applications.
    </P
><H1
><A
NAME="FCBLANKSCREATE"
></A
>FcBlanksCreate</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3549"
></A
><H2
>Name</H2
>FcBlanksCreate&nbsp;--&nbsp;Create an FcBlanks</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3552"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3553"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBlanks * FcBlanksCreate</CODE
>(void);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3560"
></A
><H2
>Description</H2
><P
>Creates an empty FcBlanks object.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3563"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCBLANKSDESTROY"
></A
>FcBlanksDestroy</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3570"
></A
><H2
>Name</H2
>FcBlanksDestroy&nbsp;--&nbsp;Destroy and FcBlanks</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3573"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3574"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcBlanksDestroy</CODE
>(FcBlanks *b);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3581"
></A
><H2
>Description</H2
><P
>Destroys an FcBlanks object, freeing any associated memory.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3584"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCBLANKSADD"
></A
>FcBlanksAdd</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3591"
></A
><H2
>Name</H2
>FcBlanksAdd&nbsp;--&nbsp;Add a character to an FcBlanks</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3594"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3595"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcBlanksAdd</CODE
>(FcBlanks *b, FcChar32 ucs4);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3604"
></A
><H2
>Description</H2
><P
>Adds a single character to an FcBlanks object, returning FcFalse
if this process ran out of memory.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3607"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCBLANKSISMEMBER"
></A
>FcBlanksIsMember</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3614"
></A
><H2
>Name</H2
>FcBlanksIsMember&nbsp;--&nbsp;Query membership in an FcBlanks</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3617"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3618"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcBlanksIsMember</CODE
>(FcBlanks *b, FcChar32 ucs4);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3627"
></A
><H2
>Description</H2
><P
>Returns whether the specified FcBlanks object contains the indicated Unicode
value.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3630"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN3633"
>4.14. FcAtomic</A
></H3
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="#FCATOMICCREATE"
>FcAtomicCreate</A
>&nbsp;--&nbsp;create an FcAtomic object</DT
><DT
><A
HREF="#FCATOMICLOCK"
>FcAtomicLock</A
>&nbsp;--&nbsp;lock a file</DT
><DT
><A
HREF="#FCATOMICNEWFILE"
>FcAtomicNewFile</A
>&nbsp;--&nbsp;return new temporary file name</DT
><DT
><A
HREF="#FCATOMICORIGFILE"
>FcAtomicOrigFile</A
>&nbsp;--&nbsp;return original file name</DT
><DT
><A
HREF="#FCATOMICREPLACEORIG"
>FcAtomicReplaceOrig</A
>&nbsp;--&nbsp;replace original with new</DT
><DT
><A
HREF="#FCATOMICDELETENEW"
>FcAtomicDeleteNew</A
>&nbsp;--&nbsp;delete new file</DT
><DT
><A
HREF="#FCATOMICUNLOCK"
>FcAtomicUnlock</A
>&nbsp;--&nbsp;unlock a file</DT
><DT
><A
HREF="#FCATOMICDESTROY"
>FcAtomicDestroy</A
>&nbsp;--&nbsp;destroy an FcAtomic object</DT
></DL
></DIV
><P
>These functions provide a safe way to update configuration files, allowing ongoing
reading of the old configuration file while locked for writing and ensuring that a
consistent and complete version of the configuration file is always available.
    </P
><H1
><A
NAME="FCATOMICCREATE"
></A
>FcAtomicCreate</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3640"
></A
><H2
>Name</H2
>FcAtomicCreate&nbsp;--&nbsp;create an FcAtomic object</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3643"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3644"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcAtomic * FcAtomicCreate</CODE
>(const FcChar8   *file);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3651"
></A
><H2
>Description</H2
><P
>Creates a data structure containing data needed to control access to <CODE
CLASS="PARAMETER"
>file</CODE
>.
Writing is done to a separate file.  Once that file is complete, the original
configuration file is atomically replaced so that reading process always see
a consistent and complete file without the need to lock for reading.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3655"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCATOMICLOCK"
></A
>FcAtomicLock</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3662"
></A
><H2
>Name</H2
>FcAtomicLock&nbsp;--&nbsp;lock a file</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3665"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3666"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcAtomicLock</CODE
>(FcAtomic *atomic);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3673"
></A
><H2
>Description</H2
><P
>Attempts to lock the file referenced by <CODE
CLASS="PARAMETER"
>atomic</CODE
>.
Returns FcFalse if the file is already locked, else returns FcTrue and
leaves the file locked.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3677"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCATOMICNEWFILE"
></A
>FcAtomicNewFile</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3684"
></A
><H2
>Name</H2
>FcAtomicNewFile&nbsp;--&nbsp;return new temporary file name</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3687"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3688"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcChar8 * FcAtomicNewFile</CODE
>(FcAtomic *atomic);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3695"
></A
><H2
>Description</H2
><P
>Returns the filename for writing a new version of the file referenced
by <CODE
CLASS="PARAMETER"
>atomic</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3699"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCATOMICORIGFILE"
></A
>FcAtomicOrigFile</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3706"
></A
><H2
>Name</H2
>FcAtomicOrigFile&nbsp;--&nbsp;return original file name</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3709"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3710"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcChar8 * FcAtomicOrigFile</CODE
>(FcAtomic *atomic);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3717"
></A
><H2
>Description</H2
><P
>Returns the file referenced by <CODE
CLASS="PARAMETER"
>atomic</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3721"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCATOMICREPLACEORIG"
></A
>FcAtomicReplaceOrig</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3728"
></A
><H2
>Name</H2
>FcAtomicReplaceOrig&nbsp;--&nbsp;replace original with new</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3731"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3732"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcAtomicReplaceOrig</CODE
>(FcAtomic *atomic);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3739"
></A
><H2
>Description</H2
><P
>Replaces the original file referenced by <CODE
CLASS="PARAMETER"
>atomic</CODE
> with
the new file. Returns FcFalse if the file cannot be replaced due to
permission issues in the filesystem. Otherwise returns FcTrue.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3743"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCATOMICDELETENEW"
></A
>FcAtomicDeleteNew</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3750"
></A
><H2
>Name</H2
>FcAtomicDeleteNew&nbsp;--&nbsp;delete new file</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3753"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3754"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcAtomicDeleteNew</CODE
>(FcAtomic *atomic);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3761"
></A
><H2
>Description</H2
><P
>Deletes the new file.  Used in error recovery to back out changes.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3764"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCATOMICUNLOCK"
></A
>FcAtomicUnlock</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3771"
></A
><H2
>Name</H2
>FcAtomicUnlock&nbsp;--&nbsp;unlock a file</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3774"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3775"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcAtomicUnlock</CODE
>(FcAtomic *atomic);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3782"
></A
><H2
>Description</H2
><P
>Unlocks the file.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3785"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCATOMICDESTROY"
></A
>FcAtomicDestroy</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3792"
></A
><H2
>Name</H2
>FcAtomicDestroy&nbsp;--&nbsp;destroy an FcAtomic object</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3795"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3796"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcAtomicDestroy</CODE
>(FcAtomic *atomic);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3803"
></A
><H2
>Description</H2
><P
>Destroys <CODE
CLASS="PARAMETER"
>atomic</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3807"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN3810"
>4.15. File and Directory routines</A
></H3
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="#FCFILESCAN"
>FcFileScan</A
>&nbsp;--&nbsp;scan a font file</DT
><DT
><A
HREF="#FCFILEISDIR"
>FcFileIsDir</A
>&nbsp;--&nbsp;check whether a file is a directory</DT
><DT
><A
HREF="#FCDIRSCAN"
>FcDirScan</A
>&nbsp;--&nbsp;scan a font directory without caching it</DT
><DT
><A
HREF="#FCDIRSAVE"
>FcDirSave</A
>&nbsp;--&nbsp;DEPRECATED: formerly used to save a directory cache</DT
><DT
><A
HREF="#FCDIRCACHEUNLINK"
>FcDirCacheUnlink</A
>&nbsp;--&nbsp;Remove all caches related to <CODE
CLASS="PARAMETER"
>dir</CODE
></DT
><DT
><A
HREF="#FCDIRCACHEVALID"
>FcDirCacheValid</A
>&nbsp;--&nbsp;check directory cache</DT
><DT
><A
HREF="#FCDIRCACHELOAD"
>FcDirCacheLoad</A
>&nbsp;--&nbsp;load a directory cache</DT
><DT
><A
HREF="#FCDIRCACHEREAD"
>FcDirCacheRead</A
>&nbsp;--&nbsp;read or construct a directory cache</DT
><DT
><A
HREF="#FCDIRCACHELOADFILE"
>FcDirCacheLoadFile</A
>&nbsp;--&nbsp;load a cache file</DT
><DT
><A
HREF="#FCDIRCACHEUNLOAD"
>FcDirCacheUnload</A
>&nbsp;--&nbsp;unload a cache file</DT
></DL
></DIV
><P
>These routines work with font files and directories, including font
directory cache files.
    </P
><H1
><A
NAME="FCFILESCAN"
></A
>FcFileScan</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3817"
></A
><H2
>Name</H2
>FcFileScan&nbsp;--&nbsp;scan a font file</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3820"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3821"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcFileScan</CODE
>(FcFontSet *set, FcStrSet *dirs, FcFileCache *cache, FcBlanks *blanks, const FcChar8 *file, FcBool force);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3838"
></A
><H2
>Description</H2
><P
>Scans a single file and adds all fonts found to <CODE
CLASS="PARAMETER"
>set</CODE
>.
If <CODE
CLASS="PARAMETER"
>force</CODE
> is FcTrue, then the file is scanned even if
associated information is found in <CODE
CLASS="PARAMETER"
>cache</CODE
>.  If
<CODE
CLASS="PARAMETER"
>file</CODE
> is a directory, it is added to
<CODE
CLASS="PARAMETER"
>dirs</CODE
>. Whether fonts are found depends on fontconfig
policy as well as the current configuration. Internally, fontconfig will
ignore BDF and PCF fonts which are not in Unicode (or the effectively
equivalent ISO Latin-1) encoding as those are not usable by Unicode-based
applications. The configuration can ignore fonts based on filename or
contents of the font file itself. Returns FcFalse if any of the fonts cannot be
added (due to allocation failure). Otherwise returns FcTrue.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3846"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCFILEISDIR"
></A
>FcFileIsDir</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3853"
></A
><H2
>Name</H2
>FcFileIsDir&nbsp;--&nbsp;check whether a file is a directory</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3856"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3857"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcFileIsDir</CODE
>(const FcChar8 *file);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3864"
></A
><H2
>Description</H2
><P
>Returns FcTrue if <CODE
CLASS="PARAMETER"
>file</CODE
> is a directory, otherwise
returns FcFalse.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3868"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCDIRSCAN"
></A
>FcDirScan</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3875"
></A
><H2
>Name</H2
>FcDirScan&nbsp;--&nbsp;scan a font directory without caching it</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3878"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3879"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcDirScan</CODE
>(FcFontSet *set, FcStrSet *dirs, FcFileCache *cache, FcBlanks *blanks, const FcChar8 *dir, FcBool force);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3896"
></A
><H2
>Description</H2
><P
>If <CODE
CLASS="PARAMETER"
>cache</CODE
> is not zero or if <CODE
CLASS="PARAMETER"
>force</CODE
>
is FcFalse, this function currently returns FcFalse.  Otherwise, it scans an
entire directory and adds all fonts found to <CODE
CLASS="PARAMETER"
>set</CODE
>.
Any subdirectories found are added to <CODE
CLASS="PARAMETER"
>dirs</CODE
>.  Calling
this function does not create any cache files.  Use FcDirCacheRead() if
caching is desired.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3903"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCDIRSAVE"
></A
>FcDirSave</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3910"
></A
><H2
>Name</H2
>FcDirSave&nbsp;--&nbsp;DEPRECATED: formerly used to save a directory cache</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3913"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3914"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcDirSave</CODE
>(FcFontSet *set, FcStrSet *dirs, const FcChar8 *dir);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3925"
></A
><H2
>Description</H2
><P
>This function now does nothing aside from returning FcFalse. It used to creates the
per-directory cache file for <CODE
CLASS="PARAMETER"
>dir</CODE
> and populates it
with the fonts in <CODE
CLASS="PARAMETER"
>set</CODE
> and subdirectories in
<CODE
CLASS="PARAMETER"
>dirs</CODE
>. All of this functionality is now automatically
managed by FcDirCacheLoad and FcDirCacheRead.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3931"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCDIRCACHEUNLINK"
></A
>FcDirCacheUnlink</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3938"
></A
><H2
>Name</H2
>FcDirCacheUnlink&nbsp;--&nbsp;Remove all caches related to <CODE
CLASS="PARAMETER"
>dir</CODE
></DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3942"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3943"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcDirCacheUnlink</CODE
>(const FcChar8 *dir, FcConfig *config);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3952"
></A
><H2
>Description</H2
><P
>Scans the cache directories in <CODE
CLASS="PARAMETER"
>config</CODE
>, removing any
instances of the cache file for <CODE
CLASS="PARAMETER"
>dir</CODE
>. Returns FcFalse
when some internal error occurs (out of memory, etc). Errors actually
unlinking any files are ignored.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3957"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCDIRCACHEVALID"
></A
>FcDirCacheValid</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3964"
></A
><H2
>Name</H2
>FcDirCacheValid&nbsp;--&nbsp;check directory cache</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3967"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3968"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcDirCacheValid</CODE
>(const FcChar8 *dir);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3975"
></A
><H2
>Description</H2
><P
>Returns FcTrue if <CODE
CLASS="PARAMETER"
>dir</CODE
> has an associated valid cache
file, else returns FcFalse
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3979"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCDIRCACHELOAD"
></A
>FcDirCacheLoad</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3986"
></A
><H2
>Name</H2
>FcDirCacheLoad&nbsp;--&nbsp;load a directory cache</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3989"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN3990"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcCache * FcDirCacheLoad</CODE
>(const FcChar8 *dir, FcConfig *config, FcChar8 **cache_file);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4001"
></A
><H2
>Description</H2
><P
>Loads the cache related to <CODE
CLASS="PARAMETER"
>dir</CODE
>. If no cache file
exists, returns NULL. The name of the cache file is returned in
<CODE
CLASS="PARAMETER"
>cache_file</CODE
>, unless that is NULL. See also
FcDirCacheRead.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4006"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCDIRCACHEREAD"
></A
>FcDirCacheRead</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4013"
></A
><H2
>Name</H2
>FcDirCacheRead&nbsp;--&nbsp;read or construct a directory cache</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4016"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4017"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcCache * FcDirCacheRead</CODE
>(const FcChar8 *dir, FcBool force, FcConfig *config);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4028"
></A
><H2
>Description</H2
><P
>This returns a cache for <CODE
CLASS="PARAMETER"
>dir</CODE
>. If
<CODE
CLASS="PARAMETER"
>force</CODE
> is FcFalse, then an existing, valid cache file
will be used. Otherwise, a new cache will be created by scanning the
directory and that returned.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4033"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCDIRCACHELOADFILE"
></A
>FcDirCacheLoadFile</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4040"
></A
><H2
>Name</H2
>FcDirCacheLoadFile&nbsp;--&nbsp;load a cache file</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4043"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4044"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcCache * FcDirCacheLoadFile</CODE
>(const FcChar8 *cache_file, struct stat *file_stat);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4053"
></A
><H2
>Description</H2
><P
>This function loads a directory cache from
<CODE
CLASS="PARAMETER"
>cache_file</CODE
>. If <CODE
CLASS="PARAMETER"
>file_stat</CODE
> is
non-NULL, it will be filled with the results of stat(2) on the cache file.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4058"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCDIRCACHEUNLOAD"
></A
>FcDirCacheUnload</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4065"
></A
><H2
>Name</H2
>FcDirCacheUnload&nbsp;--&nbsp;unload a cache file</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4068"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4069"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcDirCacheUnload</CODE
>(FcCache *cache);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4076"
></A
><H2
>Description</H2
><P
>This function dereferences <CODE
CLASS="PARAMETER"
>cache</CODE
>. When no other
references to it remain, all memory associated with the cache will be freed.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4080"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN4083"
>4.16. FcCache routines</A
></H3
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="#FCCACHEDIR"
>FcCacheDir</A
>&nbsp;--&nbsp;Return directory of <CODE
CLASS="PARAMETER"
>cache</CODE
></DT
><DT
><A
HREF="#FCCACHECOPYSET"
>FcCacheCopySet</A
>&nbsp;--&nbsp;Returns a copy of the fontset from <CODE
CLASS="PARAMETER"
>cache</CODE
></DT
><DT
><A
HREF="#FCCACHESUBDIR"
>FcCacheSubdir</A
>&nbsp;--&nbsp;Return the <CODE
CLASS="PARAMETER"
>i</CODE
>'th subdirectory.</DT
><DT
><A
HREF="#FCCACHENUMSUBDIR"
>FcCacheNumSubdir</A
>&nbsp;--&nbsp;Return the number of subdirectories in <CODE
CLASS="PARAMETER"
>cache</CODE
>.</DT
><DT
><A
HREF="#FCCACHENUMFONT"
>FcCacheNumFont</A
>&nbsp;--&nbsp;Returns the number of fonts in <CODE
CLASS="PARAMETER"
>cache</CODE
>.</DT
></DL
></DIV
><P
>These routines work with font directory caches, accessing their contents in
limited ways. It is not expected that normal applications will need to use
these functions.
    </P
><H1
><A
NAME="FCCACHEDIR"
></A
>FcCacheDir</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4090"
></A
><H2
>Name</H2
>FcCacheDir&nbsp;--&nbsp;Return directory of <CODE
CLASS="PARAMETER"
>cache</CODE
></DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4094"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4095"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>const FcChar8 * FcCacheDir</CODE
>(const FcCache *cache);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4102"
></A
><H2
>Description</H2
><P
>This function returns the directory from which the cache was constructed.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4105"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCACHECOPYSET"
></A
>FcCacheCopySet</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4112"
></A
><H2
>Name</H2
>FcCacheCopySet&nbsp;--&nbsp;Returns a copy of the fontset from <CODE
CLASS="PARAMETER"
>cache</CODE
></DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4116"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4117"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcFontSet * FcCacheCopySet</CODE
>(const FcCache *cache);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4124"
></A
><H2
>Description</H2
><P
>The returned fontset contains each of the font patterns from
<CODE
CLASS="PARAMETER"
>cache</CODE
>. This fontset may be modified, but the patterns
from the cache are read-only.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4128"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCACHESUBDIR"
></A
>FcCacheSubdir</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4135"
></A
><H2
>Name</H2
>FcCacheSubdir&nbsp;--&nbsp;Return the <CODE
CLASS="PARAMETER"
>i</CODE
>'th subdirectory.</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4139"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4140"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>const FcChar8 * FcCacheSubdir</CODE
>(const FcCache *cache, inti);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4149"
></A
><H2
>Description</H2
><P
>The set of subdirectories stored in a cache file are indexed by this
function, <CODE
CLASS="PARAMETER"
>i</CODE
> should range from 0 to
<CODE
CLASS="PARAMETER"
>n</CODE
>-1, where <CODE
CLASS="PARAMETER"
>n</CODE
> is the return
value from FcCacheNumSubdir.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4155"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCACHENUMSUBDIR"
></A
>FcCacheNumSubdir</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4162"
></A
><H2
>Name</H2
>FcCacheNumSubdir&nbsp;--&nbsp;Return the number of subdirectories in <CODE
CLASS="PARAMETER"
>cache</CODE
>.</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4166"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4167"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>int FcCacheNumSubdir</CODE
>(const FcCache *cache);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4174"
></A
><H2
>Description</H2
><P
>This returns the total number of subdirectories in the cache.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4177"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCCACHENUMFONT"
></A
>FcCacheNumFont</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4184"
></A
><H2
>Name</H2
>FcCacheNumFont&nbsp;--&nbsp;Returns the number of fonts in <CODE
CLASS="PARAMETER"
>cache</CODE
>.</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4188"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4189"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>int FcCacheNumFont</CODE
>(const FcCache *cache);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4196"
></A
><H2
>Description</H2
><P
>This returns the number of fonts which would be included in the return from
FcCacheCopySet.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4199"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN4202"
>4.17. FcStrSet and FcStrList</A
></H3
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="#FCSTRSETCREATE"
>FcStrSetCreate</A
>&nbsp;--&nbsp;create a string set</DT
><DT
><A
HREF="#FCSTRSETMEMBER"
>FcStrSetMember</A
>&nbsp;--&nbsp;check set for membership</DT
><DT
><A
HREF="#FCSTRSETEQUAL"
>FcStrSetEqual</A
>&nbsp;--&nbsp;check sets for equality</DT
><DT
><A
HREF="#FCSTRSETADD"
>FcStrSetAdd</A
>&nbsp;--&nbsp;add to a string set</DT
><DT
><A
HREF="#FCSTRSETADDFILENAME"
>FcStrSetAddFilename</A
>&nbsp;--&nbsp;add a filename to a string set</DT
><DT
><A
HREF="#FCSTRSETDEL"
>FcStrSetDel</A
>&nbsp;--&nbsp;delete from a string set</DT
><DT
><A
HREF="#FCSTRSETDESTROY"
>FcStrSetDestroy</A
>&nbsp;--&nbsp;destroy a string set</DT
><DT
><A
HREF="#FCSTRLISTCREATE"
>FcStrListCreate</A
>&nbsp;--&nbsp;create a string iterator</DT
><DT
><A
HREF="#FCSTRLISTNEXT"
>FcStrListNext</A
>&nbsp;--&nbsp;get next string in iteration</DT
><DT
><A
HREF="#FCSTRLISTDONE"
>FcStrListDone</A
>&nbsp;--&nbsp;destroy a string iterator</DT
></DL
></DIV
><P
>A data structure for enumerating strings, used to list directories while
scanning the configuration as directories are added while scanning.
    </P
><H1
><A
NAME="FCSTRSETCREATE"
></A
>FcStrSetCreate</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4209"
></A
><H2
>Name</H2
>FcStrSetCreate&nbsp;--&nbsp;create a string set</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4212"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4213"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcStrSet * FcStrSetCreate</CODE
>(void);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4220"
></A
><H2
>Description</H2
><P
>Create an empty set.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4223"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCSTRSETMEMBER"
></A
>FcStrSetMember</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4230"
></A
><H2
>Name</H2
>FcStrSetMember&nbsp;--&nbsp;check set for membership</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4233"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4234"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcStrSetMember</CODE
>(FcStrSet *set, const FcChar8 *s);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4243"
></A
><H2
>Description</H2
><P
>Returns whether <CODE
CLASS="PARAMETER"
>s</CODE
> is a member of
<CODE
CLASS="PARAMETER"
>set</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4248"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCSTRSETEQUAL"
></A
>FcStrSetEqual</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4255"
></A
><H2
>Name</H2
>FcStrSetEqual&nbsp;--&nbsp;check sets for equality</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4258"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4259"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcStrSetEqual</CODE
>(FcStrSet *set_a, FcStrSet *set_b);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4268"
></A
><H2
>Description</H2
><P
>Returns whether <CODE
CLASS="PARAMETER"
>set_a</CODE
> contains precisely the same
strings as <CODE
CLASS="PARAMETER"
>set_b</CODE
>. Ordering of strings within the two
sets is not considered.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4273"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCSTRSETADD"
></A
>FcStrSetAdd</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4280"
></A
><H2
>Name</H2
>FcStrSetAdd&nbsp;--&nbsp;add to a string set</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4283"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4284"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcStrSetAdd</CODE
>(FcStrSet *set, const FcChar8 *s);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4293"
></A
><H2
>Description</H2
><P
>Adds a copy of <CODE
CLASS="PARAMETER"
>s</CODE
> to <CODE
CLASS="PARAMETER"
>set</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4298"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCSTRSETADDFILENAME"
></A
>FcStrSetAddFilename</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4305"
></A
><H2
>Name</H2
>FcStrSetAddFilename&nbsp;--&nbsp;add a filename to a string set</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4308"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4309"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcStrSetAddFilename</CODE
>(FcStrSet *set, const FcChar8 *s);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4318"
></A
><H2
>Description</H2
><P
>Adds a copy <CODE
CLASS="PARAMETER"
>s</CODE
> to <CODE
CLASS="PARAMETER"
>set</CODE
>, The copy
is created with FcStrCopyFilename so that leading '~' values are replaced
with the value of the HOME environment variable.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4323"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCSTRSETDEL"
></A
>FcStrSetDel</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4330"
></A
><H2
>Name</H2
>FcStrSetDel&nbsp;--&nbsp;delete from a string set</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4333"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4334"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcStrSetDel</CODE
>(FcStrSet *set, const FcChar8 *s);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4343"
></A
><H2
>Description</H2
><P
>Removes <CODE
CLASS="PARAMETER"
>s</CODE
> from <CODE
CLASS="PARAMETER"
>set</CODE
>, returning
FcTrue if <CODE
CLASS="PARAMETER"
>s</CODE
> was a member else FcFalse.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4349"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCSTRSETDESTROY"
></A
>FcStrSetDestroy</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4356"
></A
><H2
>Name</H2
>FcStrSetDestroy&nbsp;--&nbsp;destroy a string set</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4359"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4360"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcStrSetDestroy</CODE
>(FcStrSet *set);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4367"
></A
><H2
>Description</H2
><P
>Destroys <CODE
CLASS="PARAMETER"
>set</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4371"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCSTRLISTCREATE"
></A
>FcStrListCreate</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4378"
></A
><H2
>Name</H2
>FcStrListCreate&nbsp;--&nbsp;create a string iterator</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4381"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4382"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcStrList * FcStrListCreate</CODE
>(FcStrSet *set);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4389"
></A
><H2
>Description</H2
><P
>Creates an iterator to list the strings in <CODE
CLASS="PARAMETER"
>set</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4393"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCSTRLISTNEXT"
></A
>FcStrListNext</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4400"
></A
><H2
>Name</H2
>FcStrListNext&nbsp;--&nbsp;get next string in iteration</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4403"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4404"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcChar8 * FcStrListNext</CODE
>(FcStrList *list);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4411"
></A
><H2
>Description</H2
><P
>Returns the next string in <CODE
CLASS="PARAMETER"
>set</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4415"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCSTRLISTDONE"
></A
>FcStrListDone</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4422"
></A
><H2
>Name</H2
>FcStrListDone&nbsp;--&nbsp;destroy a string iterator</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4425"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4426"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcStrListDone</CODE
>(FcStrList *list);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4433"
></A
><H2
>Description</H2
><P
>Destroys the enumerator <CODE
CLASS="PARAMETER"
>list</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4437"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN4440"
>4.18. String utilities</A
></H3
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="#FCUTF8TOUCS4"
>FcUtf8ToUcs4</A
>&nbsp;--&nbsp;convert UTF-8 to UCS4</DT
><DT
><A
HREF="#FCUCS4TOUTF8"
>FcUcs4ToUtf8</A
>&nbsp;--&nbsp;convert UCS4 to UTF-8</DT
><DT
><A
HREF="#FCUTF8LEN"
>FcUtf8Len</A
>&nbsp;--&nbsp;count UTF-8 encoded chars</DT
><DT
><A
HREF="#FCUTF16TOUCS4"
>FcUtf16ToUcs4</A
>&nbsp;--&nbsp;convert UTF-16 to UCS4</DT
><DT
><A
HREF="#FCUTF16LEN"
>FcUtf16Len</A
>&nbsp;--&nbsp;count UTF-16 encoded chars</DT
><DT
><A
HREF="#FCISLOWER"
>FcIsLower</A
>&nbsp;--&nbsp;check for lower case ASCII character</DT
><DT
><A
HREF="#FCISUPPER"
>FcIsUpper</A
>&nbsp;--&nbsp;check for upper case ASCII character</DT
><DT
><A
HREF="#FCTOLOWER"
>FcToLower</A
>&nbsp;--&nbsp;convert upper case ASCII to lower case</DT
><DT
><A
HREF="#FCSTRCOPY"
>FcStrCopy</A
>&nbsp;--&nbsp;duplicate a string</DT
><DT
><A
HREF="#FCSTRDOWNCASE"
>FcStrDowncase</A
>&nbsp;--&nbsp;create a lower case translation of a string</DT
><DT
><A
HREF="#FCSTRCOPYFILENAME"
>FcStrCopyFilename</A
>&nbsp;--&nbsp;create a complete path from a filename</DT
><DT
><A
HREF="#FCSTRCMP"
>FcStrCmp</A
>&nbsp;--&nbsp;compare UTF-8 strings</DT
><DT
><A
HREF="#FCSTRCMPIGNORECASE"
>FcStrCmpIgnoreCase</A
>&nbsp;--&nbsp;compare UTF-8 strings ignoring case</DT
><DT
><A
HREF="#FCSTRSTR"
>FcStrStr</A
>&nbsp;--&nbsp;locate UTF-8 substring</DT
><DT
><A
HREF="#FCSTRSTRIGNORECASE"
>FcStrStrIgnoreCase</A
>&nbsp;--&nbsp;locate UTF-8 substring ignoring ASCII case</DT
><DT
><A
HREF="#FCSTRPLUS"
>FcStrPlus</A
>&nbsp;--&nbsp;concatenate two strings</DT
><DT
><A
HREF="#FCSTRFREE"
>FcStrFree</A
>&nbsp;--&nbsp;free a string</DT
><DT
><A
HREF="#FCSTRDIRNAME"
>FcStrDirname</A
>&nbsp;--&nbsp;directory part of filename</DT
><DT
><A
HREF="#FCSTRBASENAME"
>FcStrBasename</A
>&nbsp;--&nbsp;last component of filename</DT
></DL
></DIV
><P
>Fontconfig manipulates many UTF-8 strings represented with the FcChar8 type.
These functions are exposed to help applications deal with these UTF-8
strings in a locale-insensitive manner.
    </P
><H1
><A
NAME="FCUTF8TOUCS4"
></A
>FcUtf8ToUcs4</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4447"
></A
><H2
>Name</H2
>FcUtf8ToUcs4&nbsp;--&nbsp;convert UTF-8 to UCS4</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4450"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4451"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>int FcUtf8ToUcs4</CODE
>(FcChar8 *src, FcChar32 *dst, int len);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4462"
></A
><H2
>Description</H2
><P
>Converts the next Unicode char from <CODE
CLASS="PARAMETER"
>src</CODE
> into
<CODE
CLASS="PARAMETER"
>dst</CODE
> and returns the number of bytes containing the
char.  <CODE
CLASS="PARAMETER"
>src</CODE
> must be at least
<CODE
CLASS="PARAMETER"
>len</CODE
> bytes long.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4469"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCUCS4TOUTF8"
></A
>FcUcs4ToUtf8</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4476"
></A
><H2
>Name</H2
>FcUcs4ToUtf8&nbsp;--&nbsp;convert UCS4 to UTF-8</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4479"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4480"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>int FcUcs4ToUtf8</CODE
>(FcChar32 src, FcChar8 dst[FC_UTF8_MAX_LEN]);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4489"
></A
><H2
>Description</H2
><P
>Converts the Unicode char from <CODE
CLASS="PARAMETER"
>src</CODE
> into
<CODE
CLASS="PARAMETER"
>dst</CODE
> and returns the number of bytes needed to encode
the char.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4494"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCUTF8LEN"
></A
>FcUtf8Len</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4501"
></A
><H2
>Name</H2
>FcUtf8Len&nbsp;--&nbsp;count UTF-8 encoded chars</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4504"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4505"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcUtf8Len</CODE
>(FcChar8 *src, int len, int *nchar, int *wchar);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4518"
></A
><H2
>Description</H2
><P
>Counts the number of Unicode chars in <CODE
CLASS="PARAMETER"
>len</CODE
> bytes of
<CODE
CLASS="PARAMETER"
>src</CODE
>.  Places that count in
<CODE
CLASS="PARAMETER"
>nchar</CODE
>.  <CODE
CLASS="PARAMETER"
>wchar</CODE
> contains 1, 2 or
4 depending on the number of bytes needed to hold the largest Unicode char
counted.  The return value indicates whether <CODE
CLASS="PARAMETER"
>src</CODE
> is a
well-formed UTF8 string.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4526"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCUTF16TOUCS4"
></A
>FcUtf16ToUcs4</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4533"
></A
><H2
>Name</H2
>FcUtf16ToUcs4&nbsp;--&nbsp;convert UTF-16 to UCS4</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4536"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4537"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>int FcUtf16ToUcs4</CODE
>(FcChar8 *src, FcEndian endian, FcChar32 *dst, int len);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4550"
></A
><H2
>Description</H2
><P
>Converts the next Unicode char from <CODE
CLASS="PARAMETER"
>src</CODE
> into
<CODE
CLASS="PARAMETER"
>dst</CODE
> and returns the number of bytes containing the
char. <CODE
CLASS="PARAMETER"
>src</CODE
> must be at least <CODE
CLASS="PARAMETER"
>len</CODE
>
bytes long.  Bytes of <CODE
CLASS="PARAMETER"
>src</CODE
> are combined into 16-bit
units according to <CODE
CLASS="PARAMETER"
>endian</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4559"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCUTF16LEN"
></A
>FcUtf16Len</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4566"
></A
><H2
>Name</H2
>FcUtf16Len&nbsp;--&nbsp;count UTF-16 encoded chars</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4569"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4570"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcUtf16Len</CODE
>(FcChar8 *src, FcEndian endian, int len, int *nchar, int *wchar);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4585"
></A
><H2
>Description</H2
><P
>Counts the number of Unicode chars in <CODE
CLASS="PARAMETER"
>len</CODE
> bytes of
<CODE
CLASS="PARAMETER"
>src</CODE
>.  Bytes of <CODE
CLASS="PARAMETER"
>src</CODE
> are
combined into 16-bit units according to <CODE
CLASS="PARAMETER"
>endian</CODE
>.
Places that count in <CODE
CLASS="PARAMETER"
>nchar</CODE
>.
<CODE
CLASS="PARAMETER"
>wchar</CODE
> contains 1, 2 or 4 depending on the number of
bytes needed to hold the largest Unicode char counted.  The return value
indicates whether <CODE
CLASS="PARAMETER"
>string</CODE
> is a well-formed UTF16
string.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4595"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCISLOWER"
></A
>FcIsLower</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4602"
></A
><H2
>Name</H2
>FcIsLower&nbsp;--&nbsp;check for lower case ASCII character</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4605"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4606"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcIsLower</CODE
>(FcChar8c);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4613"
></A
><H2
>Description</H2
><P
>This macro checks whether <CODE
CLASS="PARAMETER"
>c</CODE
> is an lower case ASCII
letter.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4617"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCISUPPER"
></A
>FcIsUpper</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4624"
></A
><H2
>Name</H2
>FcIsUpper&nbsp;--&nbsp;check for upper case ASCII character</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4627"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4628"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcBool FcIsUpper</CODE
>(FcChar8c);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4635"
></A
><H2
>Description</H2
><P
>This macro checks whether <CODE
CLASS="PARAMETER"
>c</CODE
> is a upper case ASCII
letter.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4639"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCTOLOWER"
></A
>FcToLower</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4646"
></A
><H2
>Name</H2
>FcToLower&nbsp;--&nbsp;convert upper case ASCII to lower case</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4649"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4650"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcChar8 FcToLower</CODE
>(FcChar8c);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4657"
></A
><H2
>Description</H2
><P
>This macro converts upper case ASCII <CODE
CLASS="PARAMETER"
>c</CODE
> to the
equivalent lower case letter.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4661"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCSTRCOPY"
></A
>FcStrCopy</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4668"
></A
><H2
>Name</H2
>FcStrCopy&nbsp;--&nbsp;duplicate a string</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4671"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4672"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcChar8 * FcStrCopy</CODE
>(const FcChar8 *s);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4679"
></A
><H2
>Description</H2
><P
>Allocates memory, copies <CODE
CLASS="PARAMETER"
>s</CODE
> and returns the resulting
buffer.  Yes, this is <CODE
CLASS="FUNCTION"
>strdup</CODE
>, but that function isn't
available on every platform.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4684"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCSTRDOWNCASE"
></A
>FcStrDowncase</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4691"
></A
><H2
>Name</H2
>FcStrDowncase&nbsp;--&nbsp;create a lower case translation of a string</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4694"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4695"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcChar8 * FcStrDowncase</CODE
>(const FcChar8 *s);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4702"
></A
><H2
>Description</H2
><P
>Allocates memory, copies <CODE
CLASS="PARAMETER"
>s</CODE
>, converting upper case
letters to lower case and returns the allocated buffer.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4706"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCSTRCOPYFILENAME"
></A
>FcStrCopyFilename</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4713"
></A
><H2
>Name</H2
>FcStrCopyFilename&nbsp;--&nbsp;create a complete path from a filename</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4716"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4717"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcChar8 * FcStrCopyFilename</CODE
>(const FcChar8 *s);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4724"
></A
><H2
>Description</H2
><P
><CODE
CLASS="FUNCTION"
>FcStrCopyFilename</CODE
> constructs an absolute pathname from
<CODE
CLASS="PARAMETER"
>s</CODE
>. It converts any leading '~' characters in
to the value of the HOME environment variable, and any relative paths are
converted to absolute paths using the current working directory. Sequences
of '/' characters are converted to a single '/', and names containing the
current directory '.' or parent directory '..' are correctly reconstructed.
Returns NULL if '~' is the leading character and HOME is unset or disabled
(see <CODE
CLASS="FUNCTION"
>FcConfigEnableHome</CODE
>).
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4730"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCSTRCMP"
></A
>FcStrCmp</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4737"
></A
><H2
>Name</H2
>FcStrCmp&nbsp;--&nbsp;compare UTF-8 strings</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4740"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4741"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>int FcStrCmp</CODE
>(const FcChar8 *s1, const FcChar8 *s2);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4750"
></A
><H2
>Description</H2
><P
>Returns the usual &lt;0, 0, &gt;0 result of comparing
<CODE
CLASS="PARAMETER"
>s1</CODE
> and <CODE
CLASS="PARAMETER"
>s2</CODE
>.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4755"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCSTRCMPIGNORECASE"
></A
>FcStrCmpIgnoreCase</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4762"
></A
><H2
>Name</H2
>FcStrCmpIgnoreCase&nbsp;--&nbsp;compare UTF-8 strings ignoring case</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4765"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4766"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>int FcStrCmpIgnoreCase</CODE
>(const FcChar8 *s1, const FcChar8 *s2);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4775"
></A
><H2
>Description</H2
><P
>Returns the usual &lt;0, 0, &gt;0 result of comparing
<CODE
CLASS="PARAMETER"
>s1</CODE
> and <CODE
CLASS="PARAMETER"
>s2</CODE
>. This test is
case-insensitive for all proper UTF-8 encoded strings.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4780"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCSTRSTR"
></A
>FcStrStr</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4787"
></A
><H2
>Name</H2
>FcStrStr&nbsp;--&nbsp;locate UTF-8 substring</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4790"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4791"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcChar8 * FcStrStr</CODE
>(const FcChar8 *s1, const FcChar8 *s2);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4800"
></A
><H2
>Description</H2
><P
>Returns the location of <CODE
CLASS="PARAMETER"
>s2</CODE
> in
<CODE
CLASS="PARAMETER"
>s1</CODE
>.  Returns NULL if <CODE
CLASS="PARAMETER"
>s2</CODE
>
is not present in <CODE
CLASS="PARAMETER"
>s1</CODE
>. This test will operate properly
with UTF8 encoded strings.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4807"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCSTRSTRIGNORECASE"
></A
>FcStrStrIgnoreCase</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4814"
></A
><H2
>Name</H2
>FcStrStrIgnoreCase&nbsp;--&nbsp;locate UTF-8 substring ignoring ASCII case</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4817"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4818"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcChar8 * FcStrStrIgnoreCase</CODE
>(const FcChar8 *s1, const FcChar8 *s2);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4827"
></A
><H2
>Description</H2
><P
>Returns the location of <CODE
CLASS="PARAMETER"
>s2</CODE
> in 
<CODE
CLASS="PARAMETER"
>s1</CODE
>, ignoring case.  Returns NULL if
<CODE
CLASS="PARAMETER"
>s2</CODE
> is not present in <CODE
CLASS="PARAMETER"
>s1</CODE
>.
This test is case-insensitive for all proper UTF-8 encoded strings.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4834"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCSTRPLUS"
></A
>FcStrPlus</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4841"
></A
><H2
>Name</H2
>FcStrPlus&nbsp;--&nbsp;concatenate two strings</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4844"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4845"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcChar8 * FcStrPlus</CODE
>(const FcChar8 *s1, const FcChar8 *s2);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4854"
></A
><H2
>Description</H2
><P
>This function allocates new storage and places the concatenation of
<CODE
CLASS="PARAMETER"
>s1</CODE
> and <CODE
CLASS="PARAMETER"
>s2</CODE
> there, returning the
new string.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4859"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCSTRFREE"
></A
>FcStrFree</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4866"
></A
><H2
>Name</H2
>FcStrFree&nbsp;--&nbsp;free a string</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4869"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4870"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void FcStrFree</CODE
>(FcChar8 *s);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4877"
></A
><H2
>Description</H2
><P
>This is just a wrapper around free(3) which helps track memory usage of
strings within the fontconfig library.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4880"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCSTRDIRNAME"
></A
>FcStrDirname</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4887"
></A
><H2
>Name</H2
>FcStrDirname&nbsp;--&nbsp;directory part of filename</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4890"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4891"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcChar8 * FcStrDirname</CODE
>(const FcChar8 *file);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4898"
></A
><H2
>Description</H2
><P
>Returns the directory containing <CODE
CLASS="PARAMETER"
>file</CODE
>.  This
is returned in newly allocated storage which should be freed when no longer
needed.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4902"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
><H1
><A
NAME="FCSTRBASENAME"
></A
>FcStrBasename</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4909"
></A
><H2
>Name</H2
>FcStrBasename&nbsp;--&nbsp;last component of filename</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4912"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN4913"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;fontconfig.h&gt;
	</PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>FcChar8 * FcStrBasename</CODE
>(const FcChar8 *file);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4920"
></A
><H2
>Description</H2
><P
>Returns the filename of <CODE
CLASS="PARAMETER"
>file</CODE
> stripped of any leading
directory names.  This is returned in newly allocated storage which should
be freed when no longer needed.
	    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4924"
></A
><H2
>Version</H2
><P
>Fontconfig version 2.9.0

	    </P
></DIV
></DIV
></DIV
></DIV
></BODY
></HTML
>
