1XSetFontPath(3)                 XLIB FUNCTIONS                 XSetFontPath(3)
2
3
4

NAME

6       XSetFontPath, XGetFontPath, XFreeFontPath - set, get, or free the font
7       search path
8

SYNTAX

10       int XSetFontPath(Display *display, char **directories, int ndirs);
11
12       char **XGetFontPath(Display *display, int *npaths_return);
13
14       int XFreeFontPath(char **list);
15

ARGUMENTS

17       directories
18                 Specifies the directory path used to look for a font.  Set‐
19                 ting the path to the empty list restores the default path
20                 defined for the X server.
21
22       display   Specifies the connection to the X server.
23
24       list      Specifies the array of strings you want to free.
25
26       ndirs     Specifies the number of directories in the path.
27
28       npaths_return
29                 Returns the number of strings in the font path array.
30

DESCRIPTION

32       The XSetFontPath function defines the directory search path for font
33       lookup.  There is only one search path per X server, not one per
34       client.  The encoding and interpretation of the strings are implementa‐
35       tion-dependent, but typically they specify directories or font servers
36       to be searched in the order listed.  An X server is permitted to cache
37       font information internally; for example, it might cache an entire font
38       from a file and not check on subsequent opens of that font to see if
39       the underlying font file has changed.  However, when the font path is
40       changed, the X server is guaranteed to flush all cached information
41       about fonts for which there currently are no explicit resource IDs
42       allocated.  The meaning of an error from this request is implementa‐
43       tion-dependent.
44
45       XSetFontPath can generate a BadValue error.
46
47       The XGetFontPath function allocates and returns an array of strings
48       containing the search path.  The contents of these strings are imple‐
49       mentation-dependent and are not intended to be interpreted by client
50       applications.  When it is no longer needed, the data in the font path
51       should be freed by using XFreeFontPath.
52
53       The XFreeFontPath function frees the data allocated by XGetFontPath.
54

DIAGNOSTICS

56       BadValue  Some numeric value falls outside the range of values accepted
57                 by the request.  Unless a specific range is specified for an
58                 argument, the full range defined by the argument's type is
59                 accepted.  Any argument defined as a set of alternatives can
60                 generate this error.
61

SEE ALSO

63       XListFont(3), XLoadFonts(3)
64       Xlib - C Language X Interface
65
66
67
68X Version 11                     libX11 1.6.7                  XSetFontPath(3)
Impressum