Re: Draft animator bug: help?



 On 17/08/10 19:38, Christopher Roy Bratusek wrote:
Am Tue, 17 Aug 2010 18:22:08 +0200
schrieb Christopher Roy Bratusek<zanghar freenet de>:

... but opens another: doesn't use the font set by Sawfish...
XSetFont(dpy, VX_GC (gc)->gc, ????);

how do I get Sawfishs current font in "-*-courier-medium-r-normal-*-*-120-75-* format?
That isn't going to work. Fonts in -*-courier-medium-r-normal-*-*-120-75-* format are provided by the X server, and text is drawn by the server. Pango fonts are provided by the client, and text is drawn by the client. They are two completely different methods for outputting text, and may make completely different sets of fonts available. The x_draw_string function calls the appropriate text output function for the specified font. You cannot unconditionally replace it with XDrawText unless it only has to work with fonts available on the X server.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]