1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/loose.dtd">
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.79"></HEAD
28 >fonts.conf -- Font configuration files</DIV
30 CLASS="REFSYNOPSISDIV"
44 > /etc/fonts/fonts.conf
47 $XDG_CONFIG_HOME/fontconfig/conf.d
48 $XDG_CONFIG_HOME/fontconfig/fonts.conf
63 >Fontconfig is a library designed to provide system-wide font configuration,
64 customization and application access.
73 >Functional Overview</H2
75 >Fontconfig contains two essential modules, the configuration module which
76 builds an internal configuration from XML files and the matching module
77 which accepts font patterns and returns the nearest matching font.
85 >Font Configuration</H3
87 >The configuration module consists of the FcConfig datatype, libexpat and
88 FcConfigParse which walks over an XML tree and amends a configuration with
89 data found within. From an external perspective, configuration of the
90 library consists of generating a valid XML tree and feeding that to
91 FcConfigParse. The only other mechanism provided to applications for
92 changing the running configuration is to add fonts and directories to the
93 list of application-provided font files.
96 >The intent is to make font configurations relatively static, and shared by
97 as many applications as possible. It is hoped that this will lead to more
98 stable font selection when passing names from one application to another.
99 XML was chosen as a configuration file format because it provides a format
100 which is easy for external agents to edit while retaining the correct
101 structure and syntax.
104 >Font configuration is separate from font matching; applications needing to
105 do their own matching can access the available fonts from the library and
106 perform private matching. The intent is to permit applications to pick and
107 choose appropriate functionality from the library instead of forcing them to
108 choose between this library and a private configuration mechanism. The hope
109 is that this will ensure that configuration of fonts for all applications
110 can be centralized in one place. Centralizing font configuration will
111 simplify and regularize font installation and customization.
122 >While font patterns may contain essentially any properties, there are some
123 well known properties with associated types. Fontconfig uses some of these
124 properties for font matching and font completion. Others are provided as a
125 convenience for the applications' rendering mechanism.
134 CLASS="PROGRAMLISTING"
135 > Property Type Description
136 --------------------------------------------------------------
137 family String Font family names
138 familylang String Languages corresponding to each family
139 style String Font style. Overrides weight and slant
140 stylelang String Languages corresponding to each style
141 fullname String Font full names (often includes style)
142 fullnamelang String Languages corresponding to each fullname
143 slant Int Italic, oblique or roman
144 weight Int Light, medium, demibold, bold or black
145 size Double Point size
146 width Int Condensed, normal or expanded
147 aspect Double Stretches glyphs horizontally before hinting
148 pixelsize Double Pixel size
149 spacing Int Proportional, dual-width, monospace or charcell
150 foundry String Font foundry name
151 antialias Bool Whether glyphs can be antialiased
152 hinting Bool Whether the rasterizer should use hinting
153 hintstyle Int Automatic hinting style
154 verticallayout Bool Use vertical layout
155 autohint Bool Use autohinter instead of normal hinter
156 globaladvance Bool Use font global advance data (deprecated)
157 file String The filename holding the font
158 index Int The index of the font within the file
159 ftface FT_Face Use the specified FreeType face object
160 rasterizer String Which rasterizer is in use (deprecated)
161 outline Bool Whether the glyphs are outlines
162 scalable Bool Whether glyphs can be scaled
163 color Bool Whether any glyphs have color
164 scale Double Scale factor for point->pixel conversions
165 dpi Double Target dots per inch
166 rgba Int unknown, rgb, bgr, vrgb, vbgr,
167 none - subpixel geometry
168 lcdfilter Int Type of LCD filter
169 minspace Bool Eliminate leading from line spacing
170 charset CharSet Unicode chars encoded by the font
171 lang String List of RFC-3066-style languages this
173 fontversion Int Version number of the font
174 capability String List of layout capabilities in the font
175 fontformat String String name of the font format
176 embolden Bool Rasterizer should synthetically embolden the font
177 embeddedbitmap Bool Use the embedded bitmap instead of the outline
178 decorative Bool Whether the style is a decorative variant
179 fontfeatures String List of the feature tags in OpenType to be enabled
180 namelang String Language name to be used for the default value of
181 familylang, stylelang, and fullnamelang
182 prgname String String Name of the running program
183 postscriptname String Font family name in PostScript
197 >Fontconfig performs matching by measuring the distance from a provided
198 pattern to all of the available fonts in the system. The closest matching
199 font is selected. This ensures that a font will always be returned, but
200 doesn't ensure that it is anything like the requested pattern.
204 Font matching starts with an application constructed pattern. The desired
205 attributes of the resulting font are collected together in a pattern. Each
206 property of the pattern can contain one or more values; these are listed in
207 priority order; matches earlier in the list are considered "closer" than
208 matches later in the list.
211 >The initial pattern is modified by applying the list of editing instructions
212 specific to patterns found in the configuration; each consists of a match
213 predicate and a set of editing operations. They are executed in the order
214 they appeared in the configuration. Each match causes the associated
215 sequence of editing operations to be applied.
218 >After the pattern has been edited, a sequence of default substitutions are
219 performed to canonicalize the set of available properties; this avoids the
220 need for the lower layers to constantly provide default values for various
221 font properties during rendering.
224 >The canonical font pattern is finally matched against all available fonts.
225 The distance from the pattern to the font is measured for each of several
226 properties: foundry, charset, family, lang, spacing, pixelsize, style,
227 slant, weight, antialias, rasterizer and outline. This list is in priority
228 order -- results of comparing earlier elements of this list weigh more
229 heavily than later elements.
232 >There is one special case to this rule; family names are split into two
233 bindings; strong and weak. Strong family names are given greater precedence
234 in the match than lang elements while weak family names are given lower
235 precedence than lang elements. This permits the document language to drive
236 font selection when any document specified font is unavailable.
239 >The pattern representing that font is augmented to include any properties
240 found in the pattern but not found in the font itself; this permits the
241 application to pass rendering instructions or any other data through the
242 matching system. Finally, the list of editing instructions specific to
243 fonts found in the configuration are applied to the pattern. This modified
244 pattern is returned to the application.
247 >The return value contains sufficient information to locate and rasterize the
248 font, including the file name, pixel size and other rendering data. As
249 none of the information involved pertains to the FreeType library,
250 applications are free to use any rasterization engine or even to take
251 the identified font file and access it directly.
254 >The match/edit sequences in the configuration are performed in two passes
255 because there are essentially two different operations necessary -- the
256 first is to modify how fonts are selected; aliasing families and adding
257 suitable defaults. The second is to modify how the selected fonts are
258 rasterized. Those must apply to the selected font, not the original pattern
259 as false matches will often occur.
270 >Fontconfig provides a textual representation for patterns that the library
271 can both accept and generate. The representation is in three parts, first a
272 list of family names, second a list of point sizes and finally a list of
273 additional properties:
282 CLASS="PROGRAMLISTING"
283 > <families>-<point sizes>:<name1>=<values1>:<name2>=<values2>...
289 >Values in a list are separated with commas. The name needn't include either
290 families or point sizes; they can be elided. In addition, there are
291 symbolic constants that simultaneously indicate both a name and a value.
292 Here are some examples:
301 CLASS="PROGRAMLISTING"
303 ----------------------------------------------------------
304 Times-12 12 point Times Roman
305 Times-12:bold 12 point Times Bold
306 Courier:italic Courier Italic in the default size
307 Monospace:matrix=1 .1 0 1 The users preferred monospace font
308 with artificial obliquing
314 >The '\', '-', ':' and ',' characters in family names must be preceded by a
315 '\' character to avoid having them misinterpreted. Similarly, values
316 containing '\', '=', '_', ':' and ',' must also have them preceded by a
317 '\' character. The '\' characters are stripped out of the family name and
318 values as the font name is read.
328 >Debugging Applications</H2
330 >To help diagnose font and applications problems, fontconfig is built with a
331 large amount of internal debugging left enabled. It is controlled by means
332 of the FC_DEBUG environment variable. The value of this variable is
333 interpreted as a number, and each bit within that value controls different
343 CLASS="PROGRAMLISTING"
345 ---------------------------------------------------------
346 MATCH 1 Brief information about font matching
347 MATCHV 2 Extensive font matching information
348 EDIT 4 Monitor match/test/edit execution
349 FONTSET 8 Track loading of font information at startup
350 CACHE 16 Watch cache files being written
351 CACHEV 32 Extensive cache file writing information
352 PARSE 64 (no longer in use)
353 SCAN 128 Watch font files being scanned to build caches
354 SCANV 256 Verbose font file scanning information
355 MEMORY 512 Monitor fontconfig memory usage
356 CONFIG 1024 Monitor which config files are loaded
357 LANGSET 2048 Dump char sets used to construct lang values
358 OBJTYPES 4096 Display message when value typechecks fail
364 >Add the value of the desired debug levels together and assign that (in
365 base 10) to the FC_DEBUG environment variable before running the
366 application. Output from these statements is sent to stdout.
377 >Each font in the database contains a list of languages it supports. This is
378 computed by comparing the Unicode coverage of the font with the orthography
379 of each language. Languages are tagged using an RFC-3066 compatible naming
380 and occur in two parts -- the ISO 639 language tag followed a hyphen and then
381 by the ISO 3166 country code. The hyphen and country code may be elided.
384 >Fontconfig has orthographies for several languages built into the library.
385 No provision has been made for adding new ones aside from rebuilding the
386 library. It currently supports 122 of the 139 languages named in ISO 639-1,
387 141 of the languages with two-letter codes from ISO 639-2 and another 30
388 languages with only three-letter codes. Languages with both two and three
389 letter codes are provided with only the two letter code.
392 >For languages used in multiple territories with radically different
393 character sets, fontconfig includes per-territory orthographies. This
394 includes Azerbaijani, Kurdish, Pashto, Tigrinya and Chinese.
403 >Configuration File Format</H2
405 >Configuration files for fontconfig are stored in XML format; this
406 format makes external configuration tools easier to write and ensures that
407 they will generate syntactically correct configuration files. As XML
408 files are plain text, they can also be manipulated by the expert user using
412 >The fontconfig document type definition resides in the external entity
413 "fonts.dtd"; this is normally stored in the default font configuration
414 directory (/etc/fonts). Each configuration file should contain the
423 CLASS="PROGRAMLISTING"
424 > <?xml version="1.0"?>
425 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
428 </fontconfig>
443 ><fontconfig></TT
446 >This is the top level element for a font configuration and can contain
452 ><cachedir></TT
455 ><include></TT
462 > elements in any order.
473 ><dir prefix="default"></TT
476 >This element contains a directory name which will be scanned for font files
477 to include in the set of available fonts. If 'prefix' is set to "xdg", the value in the XDG_DATA_HOME environment variable will be added as the path prefix. please see XDG Base Directory Specification for more details.
488 ><cachedir prefix="default"></TT
491 >This element contains a directory name that is supposed to be stored or read
492 the cache of font information. If multiple elements are specified in
493 the configuration file, the directory that can be accessed first in the list
494 will be used to store the cache files. If it starts with '~', it refers to
495 a directory in the users home directory. If 'prefix' is set to "xdg", the value in the XDG_CACHE_HOME environment variable will be added as the path prefix. please see XDG Base Directory Specification for more details.
496 The default directory is ``$XDG_CACHE_HOME/fontconfig'' and it contains the cache files
499 ><hash value></TT
502 ><architecture></TT
505 ><version></TT
509 ><version></TT
510 > is the font configureation file
511 version number (currently 3).
522 ><include ignore_missing="no" prefix="default"></TT
525 >This element contains the name of an additional configuration file or
526 directory. If a directory, every file within that directory starting with an
527 ASCII digit (U+0030 - U+0039) and ending with the string ``.conf'' will be processed in sorted order. When
528 the XML datatype is traversed by FcConfigParse, the contents of the file(s)
529 will also be incorporated into the configuration by passing the filename(s) to
530 FcConfigLoadAndParse. If 'ignore_missing' is set to "yes" instead of the
531 default "no", a missing file or directory will elicit no warning message from
532 the library. If 'prefix' is set to "xdg", the value in the XDG_CONFIG_HOME environment variable will be added as the path prefix. please see XDG Base Directory Specification for more details.
543 ><config></TT
546 >This element provides a place to consolidate additional configuration
549 ><config></TT
555 ><rescan></TT
571 >Fonts often include "broken" glyphs which appear in the encoding but are
572 drawn as blanks on the screen. Within the <TT
575 > element, place each
576 Unicode characters which is supposed to be blank in an <TT
580 Characters outside of this set which are drawn as blank will be elided from
581 the set of characters supported by the font.
592 ><rescan></TT
597 ><rescan></TT
598 > element holds an <TT
601 > element which indicates the default
602 interval between automatic checks for font configuration changes.
603 Fontconfig will validate all of the configuration files and directories and
604 automatically rebuild the internal datastructures when this interval passes.
615 ><selectfont></TT
618 >This element is used to black/white list fonts from being listed or matched
619 against. It holds acceptfont and rejectfont elements.
630 ><acceptfont></TT
633 >Fonts matched by an acceptfont element are "whitelisted"; such fonts are
634 explicitly included in the set of fonts used to resolve list and match
635 requests; including them in this list protects them from being "blacklisted"
636 by a rejectfont element. Acceptfont elements include glob and pattern
637 elements which are used to match fonts.
648 ><rejectfont></TT
651 >Fonts matched by an rejectfont element are "blacklisted"; such fonts are
652 excluded from the set of fonts used to resolve list and match requests as if
653 they didn't exist in the system. Rejectfont elements include glob and
654 pattern elements which are used to match fonts.
668 >Glob elements hold shell-style filename matching patterns (including ? and
669 *) which match fonts based on their complete pathnames. This can be used to
670 exclude a set of directories (/usr/share/fonts/uglyfont*), or particular
671 font file types (*.pcf.gz), but the latter mechanism relies rather heavily
672 on filenaming conventions which can't be relied upon. Note that globs
673 only apply to directories, not to individual fonts.
684 ><pattern></TT
687 >Pattern elements perform list-style matching on incoming fonts; that is,
688 they hold a list of elements and associated values. If all of those
689 elements have a matching value, then the pattern matches the font. This can
690 be used to select fonts based on attributes of the font (scalable, bold,
691 etc), which is a more reliable mechanism than using file extensions.
692 Pattern elements include patelt elements.
703 ><patelt name="property"></TT
706 >Patelt elements hold a single pattern element and list of values. They must
707 have a 'name' attribute which indicates the pattern element name. Patelt
708 elements include int, double, string, matrix, bool, charset and const
720 ><match target="pattern"></TT
723 >This element holds first a (possibly empty) list of <TT
727 a (possibly empty) list of <TT
730 > elements. Patterns which match all of the
731 tests are subjected to all the edits. If 'target' is set to "font" instead
732 of the default "pattern", then this element applies to the font name
733 resulting from a match rather than a font pattern to be matched. If 'target'
734 is set to "scan", then this element applies when the font is scanned to
735 build the fontconfig database.
746 ><test qual="any" name="property" target="default" compare="eq"></TT
749 >This element contains a single value which is compared with the target
750 ('pattern', 'font', 'scan' or 'default') property "property" (substitute any of the property names seen
751 above). 'compare' can be one of "eq", "not_eq", "less", "less_eq", "more", "more_eq", "contains" or
752 "not_contains". 'qual' may either be the default, "any", in which case the match
753 succeeds if any value associated with the property matches the test value, or
754 "all", in which case all of the values associated with the property must
755 match the test value. 'ignore-blanks' takes a boolean value. if 'ignore-blanks' is set "true", any blanks in the string will be ignored on its comparison. this takes effects only when compare="eq" or compare="not_eq".
756 When used in a <match target="font"> element,
757 the target= attribute in the <test> element selects between matching
758 the original pattern or the font. "default" selects whichever target the
759 outer <match> element has selected.
770 ><edit name="property" mode="assign" binding="weak"></TT
773 >This element contains a list of expression elements (any of the value or
774 operator elements). The expression elements are evaluated at run-time and
775 modify the property "property". The modification depends on whether
776 "property" was matched by one of the associated <TT
779 > elements, if so, the
780 modification may affect the first matched value. Any values inserted into
781 the property are given the indicated binding ("strong", "weak" or "same")
782 with "same" binding using the value from the matched pattern element.
791 CLASS="PROGRAMLISTING"
792 > Mode With Match Without Match
793 ---------------------------------------------------------------------
794 "assign" Replace matching value Replace all values
795 "assign_replace" Replace all values Replace all values
796 "prepend" Insert before matching Insert at head of list
797 "prepend_first" Insert at head of list Insert at head of list
798 "append" Append after matching Append at end of list
799 "append_last" Append at end of list Append at end of list
800 "delete" Delete matching value Delete all values
801 "delete_all" Delete all values Delete all values
820 ><double></TT
823 ><string></TT
829 >These elements hold a single value of the indicated type. <TT
833 elements hold either true or false. An important limitation exists in
834 the parsing of floating point numbers -- fontconfig requires that
835 the mantissa start with a digit, not a decimal point, so insert a leading
836 zero for purely fractional values (e.g. use 0.5 instead of .5 and -0.5
848 ><matrix></TT
851 >This element holds four numerical expressions of an affine transformation.
852 At their simplest these will be four <TT
854 ><double></TT
856 but they can also be more involved expressions.
870 >This element holds the two <TT
873 > elements of a range
885 ><charset></TT
888 >This element holds at least one <TT
892 an Unicode code point or more.
903 ><langset></TT
906 >This element holds at least one <TT
908 ><string></TT
910 a RFC-3066-style languages or more.
924 >Holds a property name. Evaluates to the first value from the property of
925 the pattern. If the 'target' attribute is not present, it will default to
926 'default', in which case the property is returned from the font pattern
927 during a target="font" match, and to the pattern during a target="pattern"
928 match. The attribute can also take the values 'font' or 'pattern' to
929 explicitly choose which pattern to use. It is an error to use a target
930 of 'font' in a match that has target="pattern".
944 >Holds the name of a constant; these are always integers and serve as
945 symbolic names for common font values:
953 CLASS="PROGRAMLISTING"
954 > Constant Property Value
955 -------------------------------------
975 ultracondensed width 50
976 extracondensed width 63
978 semicondensed width 87
980 semiexpanded width 113
982 extraexpanded width 150
983 ultraexpanded width 200
984 proportional spacing 0
995 lcddefault lcdfilter 1
997 lcdlegacy lcdfilter 3
999 hintslight hintstyle 1
1000 hintmedium hintstyle 2
1001 hintfull hintstyle 3
1026 ><minus></TT
1029 ><times></TT
1032 ><divide></TT
1035 >These elements perform the specified operation on a list of expression
1042 > are boolean, not bitwise.
1056 ><not_eq></TT
1062 ><less_eq></TT
1068 ><more_eq></TT
1071 ><contains></TT
1074 ><not_contains</TT
1077 >These elements compare two values, producing a boolean result.
1091 >Inverts the boolean sense of its one expression element
1105 >This element takes three expression elements; if the value of the first is
1106 true, it produces the value of the second, otherwise it produces the value
1118 ><alias></TT
1121 >Alias elements provide a shorthand notation for the set of common match
1122 operations needed to substitute one font family for another. They contain a
1125 ><family></TT
1126 > element followed by optional <TT
1128 ><prefer></TT
1131 ><accept></TT
1134 ><default></TT
1136 elements. Fonts matching the <TT
1138 ><family></TT
1139 > element are edited to prepend the
1142 ><prefer></TT
1143 >ed families before the matching <TT
1145 ><family></TT
1149 ><accept></TT
1150 >able families after the matching <TT
1152 ><family></TT
1153 > and append the <TT
1155 ><default></TT
1157 families to the end of the family list.
1168 ><family></TT
1171 >Holds a single font family name
1182 ><prefer></TT
1185 ><accept></TT
1188 ><default></TT
1191 >These hold a list of <TT
1193 ><family></TT
1194 > elements to be used by the <TT
1196 ><alias></TT
1207 >EXAMPLE CONFIGURATION FILE</H2
1214 >System configuration file</H3
1216 >This is an example of a system-wide configuration file
1225 CLASS="PROGRAMLISTING"
1226 ><?xml version="1.0"?>
1227 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
1228 <!-- /etc/fonts/fonts.conf file to configure system font access -->
1229 <fontconfig>
1231 Find fonts in these directories
1233 <dir>/usr/share/fonts</dir>
1234 <dir>/usr/X11R6/lib/X11/fonts</dir>
1237 Accept deprecated 'mono' alias, replacing it with 'monospace'
1239 <match target="pattern">
1240 <test qual="any" name="family"><string>mono</string></test>
1241 <edit name="family" mode="assign"><string>monospace</string></edit>
1245 Names not including any well known alias are given 'sans-serif'
1247 <match target="pattern">
1248 <test qual="all" name="family" mode="not_eq"><string>sans-serif</string></test>
1249 <test qual="all" name="family" mode="not_eq"><string>serif</string></test>
1250 <test qual="all" name="family" mode="not_eq"><string>monospace</string></test>
1251 <edit name="family" mode="append_last"><string>sans-serif</string></edit>
1255 Load per-user customization file, but don't complain
1258 <include ignore_missing="yes" prefix="xdg">fontconfig/fonts.conf</include>
1261 Load local customization files, but don't complain
1264 <include ignore_missing="yes">conf.d</include>
1265 <include ignore_missing="yes">local.conf</include>
1268 Alias well known font names to available TrueType fonts.
1269 These substitute TrueType faces for similar Type1
1270 faces to improve screen appearance.
1273 <family>Times</family>
1274 <prefer><family>Times New Roman</family></prefer>
1275 <default><family>serif</family></default>
1278 <family>Helvetica</family>
1279 <prefer><family>Arial</family></prefer>
1280 <default><family>sans</family></default>
1283 <family>Courier</family>
1284 <prefer><family>Courier New</family></prefer>
1285 <default><family>monospace</family></default>
1289 Provide required aliases for standard names
1290 Do these after the users configuration file so that
1291 any aliases there are used preferentially
1294 <family>serif</family>
1295 <prefer><family>Times New Roman</family></prefer>
1298 <family>sans</family>
1299 <prefer><family>Arial</family></prefer>
1302 <family>monospace</family>
1303 <prefer><family>Andale Mono</family></prefer>
1307 The example of the requirements of OR operator;
1308 If the 'family' contains 'Courier New' OR 'Courier'
1309 add 'monospace' as the alternative
1311 <match target="pattern">
1312 <test name="family" mode="eq">
1313 <string>Courier New</string>
1315 <edit name="family" mode="prepend">
1316 <string>monospace</string>
1319 <match target="pattern">
1320 <test name="family" mode="eq">
1321 <string>Courier</string>
1323 <edit name="family" mode="prepend">
1324 <string>monospace</string>
1328 </fontconfig>
1340 >User configuration file</H3
1342 >This is an example of a per-user configuration file that lives in
1343 $XDG_CONFIG_HOME/fontconfig/fonts.conf
1352 CLASS="PROGRAMLISTING"
1353 ><?xml version="1.0"?>
1354 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
1355 <!-- $XDG_CONFIG_HOME/fontconfig/fonts.conf for per-user font configuration -->
1356 <fontconfig>
1359 Private font directory
1361 <dir prefix="xdg">fonts</dir>
1364 use rgb sub-pixel ordering to improve glyph appearance on
1365 LCD screens. Changes affecting rendering, but not matching
1366 should always use target="font".
1368 <match target="font">
1369 <edit name="rgba" mode="assign"><const>rgb</const></edit>
1372 use WenQuanYi Zen Hei font when serif is requested for Chinese
1376 If you don't want to use WenQuanYi Zen Hei font for zh-tw etc,
1377 you can use zh-cn instead of zh.
1378 Please note, even if you set zh-cn, it still matches zh.
1379 if you don't like it, you can use compare="eq"
1380 instead of compare="contains".
1382 <test name="lang" compare="contains">
1383 <string>zh</string>
1385 <test name="family">
1386 <string>serif</string>
1388 <edit name="family" mode="prepend">
1389 <string>WenQuanYi Zen Hei</string>
1393 use VL Gothic font when sans-serif is requested for Japanese
1396 <test name="lang" compare="contains">
1397 <string>ja</string>
1399 <test name="family">
1400 <string>sans-serif</string>
1402 <edit name="family" mode="prepend">
1403 <string>VL Gothic</string>
1406 </fontconfig>
1425 contains configuration information for the fontconfig library
1426 consisting of directories to look at for font information as well as
1427 instructions on editing program specified font patterns before attempting to
1428 match the available fonts. It is in XML format.
1435 is the conventional name for a directory of additional configuration files
1436 managed by external applications or the local administrator. The
1437 filenames starting with decimal digits are sorted in lexicographic order
1438 and used as additional configuration files. All of these files are in XML
1439 format. The master fonts.conf file references this directory in an
1440 <include> directive.
1447 is a DTD that describes the format of the configuration files.
1452 >$XDG_CONFIG_HOME/fontconfig/conf.d</I
1457 is the conventional name for a per-user directory of (typically
1458 auto-generated) configuration files, although the
1459 actual location is specified in the global fonts.conf file. please note that ~/.fonts.conf.d is deprecated now. it will not be read by default in the future version.
1464 >$XDG_CONFIG_HOME/fontconfig/fonts.conf</I
1469 is the conventional location for per-user font configuration, although the
1470 actual location is specified in the global fonts.conf file. please note that ~/.fonts.conf is deprecated now. it will not be read by default in the future version.
1475 >$XDG_CACHE_HOME/fontconfig/*.cache-*</I
1478 > ~/.fontconfig/*.cache-*</I
1480 is the conventional repository of font information that isn't found in the
1481 per-directory caches. This file is automatically maintained by fontconfig. please note that ~/.fontconfig/*.cache-* is deprecated now. it will not be read by default in the future version.
1490 >Environment variables</H2
1496 is used to override the default configuration file.
1503 is used to override the default configuration directory.
1510 is used to output the detailed debugging messages. see <A
1512 >Debugging Applications</A
1513 > section for more details.
1518 >FONTCONFIG_USE_MMAP</I
1520 is used to control the use of mmap(2) for the cache files if available. this take a boolean value. fontconfig will checks if the cache files are stored on the filesystem that is safe to use mmap(2). explicitly setting this environment variable will causes skipping this check and enforce to use or not use mmap(2) anyway.
1531 >fc-cat(1), fc-cache(1), fc-list(1), fc-match(1), fc-query(1)
1542 >Fontconfig version 2.11.93