Fontpath

bash> cat xgetfontpath.c main() { int n; char **p = (char **)XGetFontPath(XOpenDisplay(":0.0"), &n); for(; 0 < n--; printf("%s\n", *p++)); } bash> cc -o xgetfontpath xgetfontpath.c /usr/X11R6/lib/libX11.so.6 bash> ./xgetfontpath /usr/X11R6/lib/X11/fonts/misc/ /usr/X11R6/lib/X11/fonts/Speedo/ /usr/X11R6/lib/X11/fonts/latin2/Type1/ /usr/X11R6/lib/X11/fonts/Type1/ /usr/X11R6/lib/X11/fonts/75dpi/ /usr/share/ghostscript/fonts/