X11 Why I can't draw any text?
问题 I'm trying to learn X11. It's very hard to me, because I don't have experience with window applications on Linux. I wrote some simple code and I can't resolve this not visible text problem. Everything is working good probably, when I was trying to draw rectangle with DrawRectangle function it was working. Here is the code: #include <stdlib.h> #include <stdio.h> #include <string.h> #include <X11/Xlib.h> int main() { Display* myDisplay; Window myWindow; int myScreen; GC myGC; XEvent myEvent;