[Xcb] use of xcb_poly_text_8

Barton C Massey bart at cs.pdx.edu
Tue Jan 23 22:33:15 PST 2007


That the protocol description cannot accurately capture
xcb_poly_text_8 is an outstanding bug in XCB.  For now, if
you want to use xcb_poly_text_8, you have to assemble your
request manually.

Anyway, I think what you want for what you're trying to do
is xcb_image_text_8.  The semantics of PolyText8 are quite
complicated; see the X Protocol document
  http://www.msu.edu/~huntharo/xwin/docs/xwindows/PROTO.pdf
for details.

Hope this helps.

	Bart

In message <Pine.LNX.4.64.0701231306290.6243 at grozny.maths.univ-evry.fr> you wrote:
> 
> Hey,
> 
> I'm trying to display a string with the xcb_poly_text_8 function. That 
> text is "hello, world". My call is:
> 
> cookie_text = xcb_poly_text_8_checked (c, window, gc, x, y,
>                                         strlen(text), text);
> 
> I catch an error #16 (wrong length). I look at the XDrawString function, 
> which is completely unreadable, but the length passed to the PolyText8 
> request is not the string length.
> 
> Can someone explain me what I should pass as length to that function ?
> 
> thank you
> 
> Vincent
> _______________________________________________
> Xcb mailing list
> Xcb at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xcb


More information about the Xcb mailing list