2 <META HTTP-EQUIV="Content-Type" "text/html; charset=utf-8">
3 <TITLE>xfontdump</TITLE>
4 <META NAME="description" CONTENT="Preloadable shared library to trace X
9 This program is devoted to Cyril Slobin for his excellent works in area
13 I've sometimes encountered problems of misterious X program crashes due
14 to unability to find proper X fonts. So, I've written small debugging
15 tool to debug just this problem
18 Compile <a href="xfontdump.c">xfontdump.c</a> file with command
20 gcc -shared -o xfontdump.so xfontdump.c
22 and then start troublesome program with
24 LD_PRELOAD=/path/to/xfontdump.so program
27 <b>xfontdump</b> would intercept all XLoadQueryFont and XLoadFont calls
28 and report to stderr exact font specifications program have requested.
31 If you have problems with some other shared library calls, you can
32 easily extend this apporach. Of course, you can use <b>ltrace</b>, but
33 you'll have hard time analyzing it's output.