]> www.wagner.pp.ru Git - sites/home_page.git/blob - software/unix/xfontdump.html
6e3fdb67889dea3ce18f5ace96b4f29871d749f0
[sites/home_page.git] / software / unix / xfontdump.html
1 <HTML><HEAD>
2 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=koi8-r">
3 <TITLE>xfontdump</TITLE>
4 <META NAME="description" CONTENT="Preloadable shared library to trace X
5 font query calls">
6 </HEAD><BODY>
7 <H1>XfontDump</H1>
8 <blockquote>
9 This program is devoted to Cyril Slobin for his excellent works in area
10 of russification.
11 </blockquote>
12 <p>
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
16 </p>
17 <p>
18 Compile <a href="xfontdump.c">xfontdump.c</a> file with command
19 <pre>
20 gcc -shared -o xfondump.so xfontdump.c
21 </pre>
22 and then start troublesome program with
23 <pre>
24 LD_PRELOAD=/path/to/xfontdump.so program
25 </pre>
26 <p>
27 <b>xfontdump</b> would intercept all XLoadQueryFont and XLoadFont calls
28 and report to stderr exact font specifications program have requested.
29 </p>
30 <p>
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.
34 </p>
35 </BODY>
36 </HTML>