Debian Codegraph @

subprojects/fontconfig/doc/fcconfig.fncs

raw
1 /*
2 * fontconfig/doc/fcconfig.fncs
3 *
4 * Copyright © 2003 Keith Packard
5 *
6 * Permission to use, copy, modify, distribute, and sell this software and its
7 * documentation for any purpose is hereby granted without fee, provided that
8 * the above copyright notice appear in all copies and that both that
9 * copyright notice and this permission notice appear in supporting
10 * documentation, and that the name of the author(s) not be used in
11 * advertising or publicity pertaining to distribution of the software without
12 * specific, written prior permission. The authors make no
13 * representations about the suitability of this software for any purpose. It
14 * is provided "as is" without express or implied warranty.
15 *
16 * THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
17 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
18 * EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
19 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
20 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
21 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22 * PERFORMANCE OF THIS SOFTWARE.
23 */
24 @RET@ FcConfig *
25 @FUNC@ FcConfigCreate
26 @TYPE1@ void
27 @PURPOSE@ Create a configuration
28 @DESC@
29 Creates an empty configuration.
30 @@
31
32 @RET@ FcConfig *
33 @FUNC@ FcConfigReference
34 @TYPE1@ FcConfig * @ARG1@ config
35 @PURPOSE@ Increment config reference count
36 @DESC@
37 Add another reference to <parameter>config</parameter>. Configs are freed only
38 when the reference count reaches zero.
39 If <parameter>config</parameter> is NULL, the current configuration is used.
40 In that case this function will be similar to FcConfigGetCurrent() except that
41 it increments the reference count before returning and the user is responsible
42 for destroying the configuration when not needed anymore.
43 @@
44
45 @RET@ void
46 @FUNC@ FcConfigDestroy
47 @TYPE1@ FcConfig * @ARG1@ config
48 @PURPOSE@ Destroy a configuration
49 @DESC@
50 Decrements the config reference count. If all references are gone, destroys
51 the configuration and any data associated with it.
52 Note that calling this function with the return from FcConfigGetCurrent will
53 cause a new configuration to be created for use as current configuration.
54 @@
55
56 @RET@ FcBool
57 @FUNC@ FcConfigSetCurrent
58 @TYPE1@ FcConfig * @ARG1@ config
59 @PURPOSE@ Set configuration as default
60 @DESC@
61 Sets the current default configuration to <parameter>config</parameter>. Implicitly calls
62 FcConfigBuildFonts if necessary, and FcConfigReference() to inrease the reference count
63 in <parameter>config</parameter> since 2.12.0, returning FcFalse if that call fails.
64 @@
65
66 @RET@ FcConfig *
67 @FUNC@ FcConfigGetCurrent
68 @TYPE1@ void
69 @PURPOSE@ Return current configuration
70 @DESC@
71 Returns the current default configuration.
72 @@
73
74 @RET@ FcConfig *
75 @FUNC@ FcConfigSetFontSetFilter
76 @TYPE1@ FcConfig * @ARG1@ config
77 @TYPE2@ FcFilterFontSetFunc% @ARG2@ filter_func
78 @TYPE3@ FcDestroyFunc% @ARG3@ destroy_data_func
79 @TYPE4@ void * @ARG4@ user_data
80 @PURPOSE@ Set a predicate function to filter fontsets
81 @DESC@
82 Sets <parameter>filter_func</parameter> as a predicate function and filter out
83 fontsets in <parameter>config</parameter> as desired.
84 <parameter>filter_func</parameter> will be called with a font pattern and
85 <parameter>user_data</parameter> only when loading caches.
86 When <parameter>config</parameter> is going to be destroyed,
87 <parameter>user_data</parameter> will be destroyed through
88 <parameter>destroy_data_func</parameter> if it is set.
89 @SINCE@ 2.16.0
90 @@
91
92 @RET@ FcBool
93 @FUNC@ FcConfigAcceptFilter
94 @TYPE1@ FcConfig * @ARG1@ config
95 @TYPE2@ const FcPattern * @ARG2@ font
96 @PURPOSE@ Test whether the given pattern matches filter
97 @DESC@
98 This triggers a predicate function set by <function>FcConfigSetFontSetFilter</function>
99 and return FcTrue if <parameter>font</parameter> matches something they expect.
100 otherwise FcFalse.
101 @SINCE@ 2.16.0
102 @@
103
104 @RET@ FcBool
105 @FUNC@ FcConfigUptoDate
106 @TYPE1@ FcConfig * @ARG1@ config
107 @PURPOSE@ Check timestamps on config files
108 @DESC@
109 Checks all of the files related to <parameter>config</parameter> and returns
110 whether any of them has been modified since the configuration was created.
111 If <parameter>config</parameter> is NULL, the current configuration is used.
112 @@
113
114 @RET@ FcChar8 *
115 @FUNC@ FcConfigHome
116 @TYPE1@ void
117 @PURPOSE@ return the current home directory.
118 @DESC@
119 Return the current user's home directory, if it is available, and if using it
120 is enabled, and NULL otherwise.
121 See also <function>FcConfigEnableHome</function>).
122 @@
123
124 @RET@ FcBool
125 @FUNC@ FcConfigEnableHome
126 @TYPE1@ FcBool% @ARG1@ enable
127 @PURPOSE@ controls use of the home directory.
128 @DESC@
129 If <parameter>enable</parameter> is FcTrue, then Fontconfig will use various
130 files which are specified relative to the user's home directory (using the ~
131 notation in the configuration). When <parameter>enable</parameter> is
132 FcFalse, then all use of the home directory in these contexts will be
133 disabled. The previous setting of the value is returned.
134 @@
135
136 @RET@ FcBool
137 @FUNC@ FcConfigBuildFonts
138 @TYPE1@ FcConfig * @ARG1@ config
139 @PURPOSE@ Build font database
140 @DESC@
141 Builds the set of available fonts for the given configuration. Note that
142 any changes to the configuration after this call (through
143 <function>FcConfigParseAndLoad</function> or
144 <function>FcConfigParseAndLoadFromMemory</function>) have indeterminate
145 effects. (On the other hand, application fonts can still be modified
146 through <function>FcConfigAppFontAddFile</function>,
147 <function>FcConfigAppFontAddDir</function> and
148 <function>FcConfigAppFontClear</function>). Returns FcFalse if this operation
149 runs out of memory. If <parameter>config</parameter> is NULL, the current
150 configuration is used.
151 @@
152
153 @RET@ FcStrList *
154 @FUNC@ FcConfigGetConfigDirs
155 @TYPE1@ FcConfig * @ARG1@ config
156 @PURPOSE@ Get config directories
157 @DESC@
158 Returns the list of font directories specified in the configuration files
159 for <parameter>config</parameter>. Does not include any subdirectories.
160 If <parameter>config</parameter> is NULL, the current configuration is used.
161 @@
162
163 @RET@ FcStrList *
164 @FUNC@ FcConfigGetFontDirs
165 @TYPE1@ FcConfig * @ARG1@ config
166 @PURPOSE@ Get font directories
167 @DESC@
168 Returns the list of font directories in <parameter>config</parameter>. This includes the
169 configured font directories along with any directories below those in the
170 filesystem.
171 If <parameter>config</parameter> is NULL, the current configuration is used.
172 @@
173
174 @RET@ FcStrList *
175 @FUNC@ FcConfigGetConfigFiles
176 @TYPE1@ FcConfig * @ARG1@ config
177 @PURPOSE@ Get config files
178 @DESC@
179 Returns the list of known configuration files used to generate <parameter>config</parameter>.
180 If <parameter>config</parameter> is NULL, the current configuration is used.
181 @@
182
183 @RET@ FcChar8 *
184 @FUNC@ FcConfigGetCache
185 @TYPE1@ FcConfig * @ARG1@ config
186 @PURPOSE@ DEPRECATED used to return per-user cache filename
187 @DESC@
188 With fontconfig no longer using per-user cache files, this function now
189 simply returns NULL to indicate that no per-user file exists.
190 @@
191
192 @RET@ FcStrList *
193 @FUNC@ FcConfigGetCacheDirs
194 @TYPE1@ const FcConfig * @ARG1@ config
195 @PURPOSE@ return the list of directories searched for cache files
196 @DESC@
197 <function>FcConfigGetCacheDirs</function> returns a string list containing
198 all of the directories that fontconfig will search when attempting to load a
199 cache file for a font directory.
200 If <parameter>config</parameter> is NULL, the current configuration is used.
201 @@
202
203 @RET@ FcFontSet *
204 @FUNC@ FcConfigGetFonts
205 @TYPE1@ FcConfig * @ARG1@ config
206 @TYPE2@ FcSetName% @ARG2@ set
207 @PURPOSE@ Get config font set
208 @DESC@
209 Returns one of the two sets of fonts from the configuration as specified
210 by <parameter>set</parameter>. This font set is owned by the library and must
211 not be modified or freed.
212 If <parameter>config</parameter> is NULL, the current configuration is used.
213 </para><para>
214 This function isn't MT-safe. <function>FcConfigReference</function> must be called
215 before using this and then <function>FcConfigDestroy</function> when
216 the return value is no longer referenced.
217 @@
218
219 @RET@ FcBlanks *
220 @FUNC@ FcConfigGetBlanks
221 @TYPE1@ FcConfig * @ARG1@ config
222 @PURPOSE@ Get config blanks
223 @DESC@
224 FcBlanks is deprecated.
225 This function always returns NULL.
226 @@
227
228 @RET@ int
229 @FUNC@ FcConfigGetRescanInterval
230 @TYPE1@ FcConfig * @ARG1@ config
231 @PURPOSE@ Get config rescan interval
232 @DESC@
233 Returns the interval between automatic checks of the configuration (in
234 seconds) specified in <parameter>config</parameter>. The configuration is checked during
235 a call to FcFontList when this interval has passed since the last check.
236 An interval setting of zero disables automatic checks.
237 If <parameter>config</parameter> is NULL, the current configuration is used.
238 @@
239
240 @RET@ FcBool
241 @FUNC@ FcConfigSetRescanInterval
242 @TYPE1@ FcConfig * @ARG1@ config
243 @TYPE2@ int% @ARG2@ rescanInterval
244 @PURPOSE@ Set config rescan interval
245 @DESC@
246 Sets the rescan interval. Returns FcFalse if the interval cannot be set (due
247 to allocation failure). Otherwise returns FcTrue.
248 An interval setting of zero disables automatic checks.
249 If <parameter>config</parameter> is NULL, the current configuration is used.
250 @@
251
252 @RET@ FcBool
253 @FUNC@ FcConfigAppFontAddFile
254 @TYPE1@ FcConfig * @ARG1@ config
255 @TYPE2@ const FcChar8 * @ARG2@ file
256 @PURPOSE@ Add font file to font database
257 @DESC@
258 Adds an application-specific font to the configuration. Returns FcFalse
259 if the fonts cannot be added (due to allocation failure or no fonts found).
260 Otherwise returns FcTrue. If <parameter>config</parameter> is NULL,
261 the current configuration is used.
262 @@
263
264 @RET@ FcBool
265 @FUNC@ FcConfigAppFontAddDir
266 @TYPE1@ FcConfig * @ARG1@ config
267 @TYPE2@ const FcChar8 * @ARG2@ dir
268 @PURPOSE@ Add fonts from directory to font database
269 @DESC@
270 Scans the specified directory for fonts, adding each one found to the
271 application-specific set of fonts. Returns FcFalse
272 if the fonts cannot be added (due to allocation failure).
273 Otherwise returns FcTrue. If <parameter>config</parameter> is NULL,
274 the current configuration is used.
275 @@
276
277 @RET@ void
278 @FUNC@ FcConfigAppFontClear
279 @TYPE1@ FcConfig * @ARG1@ config
280 @PURPOSE@ Remove all app fonts from font database
281 @DESC@
282 Clears the set of application-specific fonts.
283 If <parameter>config</parameter> is NULL, the current configuration is used.
284 @@
285
286 @RET@ FcBool
287 @FUNC@ FcConfigSubstituteWithPat
288 @TYPE1@ FcConfig * @ARG1@ config
289 @TYPE2@ FcPattern * @ARG2@ p
290 @TYPE3@ FcPattern * @ARG3@ p_pat
291 @TYPE4@ FcMatchKind% @ARG4@ kind
292 @PURPOSE@ Execute substitutions
293 @DESC@
294 Performs the sequence of pattern modification operations, if <parameter>kind</parameter> is
295 FcMatchPattern, then those tagged as pattern operations are applied, else
296 if <parameter>kind</parameter> is FcMatchFont, those tagged as font operations are applied and
297 p_pat is used for &lt;test&gt; elements with target=pattern. Returns FcFalse
298 if the substitution cannot be performed (due to allocation failure). Otherwise returns FcTrue.
299 If <parameter>config</parameter> is NULL, the current configuration is used.
300 @@
301
302 @RET@ FcBool
303 @FUNC@ FcConfigSubstitute
304 @TYPE1@ FcConfig * @ARG1@ config
305 @TYPE2@ FcPattern * @ARG2@ p
306 @TYPE3@ FcMatchKind% @ARG3@ kind
307 @PURPOSE@ Execute substitutions
308 @DESC@
309 Calls FcConfigSubstituteWithPat setting p_pat to NULL. Returns FcFalse
310 if the substitution cannot be performed (due to allocation failure). Otherwise returns FcTrue.
311 If <parameter>config</parameter> is NULL, the current configuration is used.
312 @@
313
314 @RET@ FcPattern *
315 @FUNC@ FcFontMatch
316 @TYPE1@ FcConfig * @ARG1@ config
317 @TYPE2@ FcPattern * @ARG2@ p
318 @TYPE3@ FcResult * @ARG3@ result
319 @PURPOSE@ Return best font
320 @DESC@
321 Finds the font in <parameter>sets</parameter> most closely matching
322 <parameter>pattern</parameter> and returns the result of
323 <function>FcFontRenderPrepare</function> for that font and the provided
324 pattern. This function should be called only after
325 <function>FcConfigSubstitute</function> and
326 <function>FcDefaultSubstitute</function> have been called for
327 <parameter>p</parameter>; otherwise the results will not be correct.
328 If <parameter>config</parameter> is NULL, the current configuration is used.
329 @@
330
331 @RET@ FcFontSet *
332 @FUNC@ FcFontSort
333 @TYPE1@ FcConfig * @ARG1@ config
334 @TYPE2@ FcPattern * @ARG2@ p
335 @TYPE3@ FcBool% @ARG3@ trim
336 @TYPE4@ FcCharSet ** @ARG4@ csp
337 @TYPE5@ FcResult * @ARG5@ result
338 @PURPOSE@ Return list of matching fonts
339 @DESC@
340 Returns the list of fonts sorted by closeness to <parameter>p</parameter>. If <parameter>trim</parameter> is FcTrue,
341 elements in the list which don't include Unicode coverage not provided by
342 earlier elements in the list are elided. The union of Unicode coverage of
343 all of the fonts is returned in <parameter>csp</parameter>, if <parameter>csp</parameter> is not NULL. This function
344 should be called only after FcConfigSubstitute and FcDefaultSubstitute have
345 been called for <parameter>p</parameter>; otherwise the results will not be correct.
346 </para><para>
347 The returned FcFontSet references FcPattern structures which may be shared
348 by the return value from multiple FcFontSort calls, applications must not
349 modify these patterns. Instead, they should be passed, along with <parameter>p</parameter> to
350 <function>FcFontRenderPrepare</function> which combines them into a complete pattern.
351 </para><para>
352 The FcFontSet returned by FcFontSort is destroyed by calling FcFontSetDestroy.
353 If <parameter>config</parameter> is NULL, the current configuration is used.
354 @@
355
356 @RET@ FcPattern *
357 @FUNC@ FcFontRenderPrepare
358 @TYPE1@ FcConfig * @ARG1@ config
359 @TYPE2@ FcPattern * @ARG2@ pat
360 @TYPE3@ FcPattern * @ARG3@ font
361 @PURPOSE@ Prepare pattern for loading font file
362 @DESC@
363 Creates a new pattern consisting of elements of <parameter>font</parameter> not appearing
364 in <parameter>pat</parameter>, elements of <parameter>pat</parameter> not appearing in <parameter>font</parameter> and the best matching
365 value from <parameter>pat</parameter> for elements appearing in both. The result is passed to
366 FcConfigSubstituteWithPat with <parameter>kind</parameter> FcMatchFont and then returned.
367 @@
368
369 @RET@ FcFontSet *
370 @FUNC@ FcFontList
371 @TYPE1@ FcConfig * @ARG1@ config
372 @TYPE2@ FcPattern * @ARG2@ p
373 @TYPE3@ FcObjectSet * @ARG3@ os
374 @PURPOSE@ List fonts
375 @DESC@
376 Selects fonts matching <parameter>p</parameter>, creates patterns from those fonts containing
377 only the objects in <parameter>os</parameter> and returns the set of unique such patterns.
378 If <parameter>config</parameter> is NULL, the default configuration is checked
379 to be up to date, and used.
380 @@
381
382 @RET@ FcChar8 *
383 @FUNC@ FcConfigFilename
384 @TYPE1@ const FcChar8 * @ARG1@ name
385 @PURPOSE@ Find a config file
386 @DESC@
387 This function is deprecated and is replaced by <function>FcConfigGetFilename</function>.
388 @@
389
390 @RET@ FcChar8 *
391 @FUNC@ FcConfigGetFilename
392 @TYPE1@ FcConfig * @ARG1@ config
393 @TYPE2@ const FcChar8 * @ARG2@ name
394 @PURPOSE@ Find a config file
395 @DESC@
396 Given the specified external entity name, return the associated filename.
397 This provides applications a way to convert various configuration file
398 references into filename form.
399 </para><para>
400 A null or empty <parameter>name</parameter> indicates that the default configuration file should
401 be used; which file this references can be overridden with the
402 FONTCONFIG_FILE environment variable. Next, if the name starts with <parameter>~</parameter>, it
403 refers to a file in the current users home directory. Otherwise if the name
404 doesn't start with '/', it refers to a file in the default configuration
405 directory; the built-in default directory can be overridden with the
406 FONTCONFIG_PATH environment variable.
407 </para><para>
408 The result of this function is affected by the FONTCONFIG_SYSROOT environment variable or equivalent functionality.
409 @@
410
411 @RET@ FcBool
412 @FUNC@ FcConfigParseAndLoad
413 @TYPE1@ FcConfig * @ARG1@ config
414 @TYPE2@ const FcChar8 * @ARG2@ file
415 @TYPE3@ FcBool% @ARG3@ complain
416 @PURPOSE@ load a configuration file
417 @DESC@
418 Walks the configuration in 'file' and constructs the internal representation
419 in 'config'. Any include files referenced from within 'file' will be loaded
420 and parsed. If 'complain' is FcFalse, no warning will be displayed if
421 'file' does not exist. Error and warning messages will be output to stderr.
422 Returns FcFalse if some error occurred while loading the file, either a
423 parse error, semantic error or allocation failure. Otherwise returns FcTrue.
424
425 After all configuration files / strings have been loaded, with
426 <function>FcConfigParseAndLoad</function> and/or
427 <function>FcConfigParseAndLoadFromMemory</function>, call
428 <function>FcConfigBuildFonts</function> to build the font
429 database.
430 @@
431
432 @RET@ FcBool
433 @FUNC@ FcConfigParseAndLoadFromMemory
434 @TYPE1@ FcConfig * @ARG1@ config
435 @TYPE2@ const FcChar8 * @ARG2@ buffer
436 @TYPE3@ FcBool% @ARG3@ complain
437 @PURPOSE@ load a configuration from memory
438 @DESC@
439 Walks the configuration in 'memory' and constructs the internal representation
440 in 'config'. Any includes files referenced from within 'memory' will be loaded
441 and dparsed. If 'complain' is FcFalse, no warning will be displayed if
442 'file' does not exist. Error and warning messages will be output to stderr.
443 Returns FcFalse if fsome error occurred while loading the file, either a
444 parse error, semantic error or allocation failure. Otherwise returns FcTrue.
445
446 After all configuration files / strings have been loaded, with
447 <function>FcConfigParseAndLoad</function> and/or
448 <function>FcConfigParseAndLoadFromMemory</function>, call
449 <function>FcConfigBuildFonts</function> to build the font
450 database.
451 @SINCE@ 2.12.5
452 @@
453
454 @RET@ const FcChar8 *
455 @FUNC@ FcConfigGetSysRoot
456 @TYPE1@ const FcConfig * @ARG1@ config
457 @PURPOSE@ Obtain the system root directory
458 @DESC@
459 Obtains the system root directory in 'config' if available. All files
460 (including file properties in patterns) obtained from this 'config' are
461 relative to this system root directory.
462 </para><para>
463 This function isn't MT-safe. <function>FcConfigReference</function> must be called
464 before using this and then <function>FcConfigDestroy</function> when
465 the return value is no longer referenced.
466 @SINCE@ 2.10.92
467 @@
468
469 @RET@ void
470 @FUNC@ FcConfigSetSysRoot
471 @TYPE1@ FcConfig * @ARG1@ config
472 @TYPE2@ const FcChar8 * @ARG2@ sysroot
473 @PURPOSE@ Set the system root directory
474 @DESC@
475 Set 'sysroot' as the system root directory. All file paths used or created with
476 this 'config' (including file properties in patterns) will be considered or
477 made relative to this 'sysroot'. This allows a host to generate caches for
478 targets at build time. This also allows a cache to be re-targeted to a
479 different base directory if 'FcConfigGetSysRoot' is used to resolve file paths.
480 When setting this on the current config this causes changing current config
481 (calls FcConfigSetCurrent()).
482 @SINCE@ 2.10.92
483 @@
484
485 @RET@ void
486 @FUNC@ FcConfigFileInfoIterInit
487 @TYPE1@ FcConfig * @ARG1@ config
488 @TYPE2@ FcConfigFileInfoIter * @ARG2@ iter
489 @PURPOSE@ Initialize the iterator
490 @DESC@
491 Initialize 'iter' with the first iterator in the config file information list.
492 </para><para>
493 The config file information list is stored in numerical order for filenames
494 i.e. how fontconfig actually read them.
495 </para><para>
496 This function isn't MT-safe. <function>FcConfigReference</function> must be called
497 before using this and then <function>FcConfigDestroy</function> when the relevant
498 values are no longer referenced.
499 @SINCE@ 2.12.91
500 @@
501
502 @RET@ FcBool
503 @FUNC@ FcConfigFileInfoIterNext
504 @TYPE1@ FcConfig * @ARG1@ config
505 @TYPE2@ FcConfigFileInfoIter * @ARG2@ iter
506 @PURPOSE@ Set the iterator to point to the next list
507 @DESC@
508 Set 'iter' to point to the next node in the config file information list.
509 If there is no next node, FcFalse is returned.
510 </para><para>
511 This function isn't MT-safe. <function>FcConfigReference</function> must be called
512 before using <function>FcConfigFileInfoIterInit</function> and then
513 <function>FcConfigDestroy</function> when the relevant values are no longer referenced.
514 @SINCE@ 2.12.91
515 @@
516
517 @RET@ FcBool
518 @FUNC@ FcConfigFileInfoIterGet
519 @TYPE1@ FcConfig * @ARG1@ config
520 @TYPE2@ FcConfigFileInfoIter * @ARG2@ iter
521 @TYPE3@ FcChar8 ** @ARG3@ name
522 @TYPE4@ FcChar8 ** @ARG4@ description
523 @TYPE5@ FcBool * @ARG5@ enabled
524 @PURPOSE@ Obtain the configuration file information
525 @DESC@
526 Obtain the filename, the description and the flag whether it is enabled or not
527 for 'iter' where points to current configuration file information.
528 If the iterator is invalid, FcFalse is returned.
529 </para><para>
530 This function isn't MT-safe. <function>FcConfigReference</function> must be called
531 before using <function>FcConfigFileInfoIterInit</function> and then
532 <function>FcConfigDestroy</function> when the relevant values are no longer referenced.
533 @SINCE@ 2.12.91
534 @@
535
536 @RET@ FcBool
537 @FUNC@ FcConfigAcceptFont
538 @TYPE1@ FcConfig * @ARG1@ config
539 @TYPE2@ FcPattern * @ARG2@ pat
540 @PURPOSE@ Test whether the given pattern matches deny list
541 @DESC@
542 fontconfig has the deny list which is built against &lt;rejectfont&gt; directive
543 in configuration file. This function tries to match 'pat' with them and
544 return FcFalse if 'pat' is rejected, otherwise FcTrue.
545 @SINCE@ 2.15.1
546 @@
547
548 @RET@ void
549 @FUNC@ FcConfigPreferAppFont
550 @TYPE1@ FcConfig * @ARG1@ config
551 @TYPE2@ FcBool% @ARG2@ flag
552 @DESC@
553 Set 'flag' to change the priority of Application fonts. default behavior is turned off
554 for backward compatibility.
555 @SINCE@ 2.17.0
556 @@