[Xcb] drawing a font

Vincent Torri Vincent.Torri at iecn.u-nancy.fr
Mon Dec 6 00:19:40 PST 2004


Easy question: how to draw a string with xcb ?? i've spent quite a lot of
time trying to do that, without success.

What i do is a bit like Xlib:

* I query a font
* I assign the font to a GC
* I draw a string (in a pixmap) using this GC
* I copy the pixmap onto my window

but, nothing is drawn. The code that i use is attached.

Does someone see what is wrong ?

Vincent TORRI
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xcb_test_font.c
Type: text/x-csrc
Size: 3587 bytes
Url : http://lists.freedesktop.org/pipermail/xcb/attachments/20041206/83a7c2d4/xcb_test_font.c

More information about the xcb mailing list