Hello, the xcb_image_text_8 function seems to fill the area of the text with the background color, and in my case it is black if not specified. Is there any way to prevent it from filling in a background color, and only draw the text? Here is a minimal example illustrating my problem, as this only displays a black box when I want to draw black text. Setting XCB_GC_FUNCTION to XCB_GX_CLEAR seems to have no effect.<br>
<br>#include &lt;xcb/xcb.h&gt;<br><br>int main(int argc, char** argv)<br>{<br>  xcb_connection_t* c = xcb_connect(0, 0);<br>  xcb_screen_t* s = xcb_setup_roots_iterator(xcb_get_setup(c)).data;<br><br>  xcb_window_t w = xcb_generate_id(c);<br>
<br>  uint32_t cw_v[2] = {(*s).white_pixel, XCB_EVENT_MASK_EXPOSURE};<br><br>  xcb_create_window(c, 0, w, (*s).root, 0, 0, 256, 256, 0, XCB_WINDOW_CLASS_INPUT_OUTPUT, (*s).root_visual, XCB_CW_BACK_PIXEL | XCB_CW_EVENT_MASK, cw_v);<br>
  xcb_map_window(c, w);<br><br>  xcb_font_t font = xcb_generate_id(c);<br>  xcb_void_cookie_t f_co = xcb_open_font(c, font, 4, &quot;8x16&quot;);<br><br>  xcb_gcontext_t gc = xcb_generate_id(c);<br>  uint32_t gc_v[3] = {XCB_GX_CLEAR, (*s).black_pixel, font};<br>
<br>  xcb_create_gc(c, gc, w, XCB_GC_FUNCTION | XCB_GC_FOREGROUND | XCB_GC_FONT, gc_v);<br><br>  xcb_flush(c);<br><br>  xcb_generic_event_t* e;<br>  while(e = xcb_wait_for_event(c))<br>  {<br>    switch((*e).response_type)<br>
    {<br>      case XCB_EXPOSE:<br>        xcb_image_text_8(c, 4, w, gc, 16, 16, &quot;Test&quot;);<br>        xcb_flush(c);<br>        break;<br>    }<br>  }<br><br>  return 0;<br>}<br><br>