XSetFontPath(3X) — X Version 11
NAME
XSetFontPath, XGetFontPath, XFreeFontPath − set, get, or free the font search path
SYNTAX
XSetFontPath(display, directories, ndirs)
Display ∗display;
char ∗∗directories;
int ndirs;
char ∗∗XGetFontPath(display, npaths_return)
Display ∗display;
int ∗npaths_return;
XFreeFontPath(list)
char ∗∗list;
ARGUMENTS
directoriesSpecifies the directory path used to look for a font. Setting the path to the empty list restores the default path defined for the X server.
displaySpecifies the connection to the X server.
listSpecifies the array of strings you want to free.
ndirsSpecifies the number of directories in the path.
npaths_return
Returns the number of strings in the font path array.
DESCRIPTION
The XSetFontPath function defines the directory search path for font lookup. .PN XSetFontPath can generate a BadValue error.
The XGetFontPath function allocates and returns an array of strings containing the search path. The data in the font path should be freed when no longer needed.
The XFreeFontPath function, when presented the data from XGetFontPath, frees the data used by the array.
DIAGNOSTICS
BadValue Some numeric value falls outside the range of values accepted by the request. Unless a specific range is specified for an argument, the full range defined by the argument’s type is accepted. Any argument defined as a set of alternatives can generate this error.
SEE ALSO
XListFont(3X), XLoadFonts(3X)
Xlib − C Language X Interface
1 March 1988