1FcFontSort(3) FcFontSort(3)
2
3
4
6 FcFontSort - Return list of matching fonts
7
9 #include <fontconfig.h>
10
11 FcFontSet * FcFontSort(FcConfig *config);
12 (FcPattern *p);
13 (FcBool trim);
14 (FcCharSet **csp);
15 (FcResult *result);
16 .fi
17
19 Returns the list of fonts sorted by closeness to p. If trim is FcTrue,
20 elements in the list which don't include Unicode coverage not provided
21 by earlier elements in the list are elided. The union of Unicode cover‐
22 age of all of the fonts is returned in csp, if csp is not NULL. This
23 function should be called only after FcConfigSubstitute and FcDefault‐
24 Substitute have been called for p; otherwise the results will not be
25 correct.
26
27 The returned FcFontSet references FcPattern structures which may be
28 shared by the return value from multiple FcFontSort calls, applications
29 must not modify these patterns. Instead, they should be passed, along
30 with p to FcFontRenderPrepare which combines them into a complete pat‐
31 tern.
32
33 The FcFontSet returned by FcFontSort is destroyed by caling FcFontSet‐
34 Destroy. If config is NULL, the current configuration is used.
35
37 Fontconfig version 2.8.0
38
39
40
41 18 November 2009 FcFontSort(3)