I want to render fonts and lines on a window using either OpenGL or Xlib, but I\'d like to know which one is \"more fundamental\".
Usin
Xlib drawing commands send obsolete requests over a network socket. The original drawing commands are obsolete, e.g. current toolkits don't use the text-specific X requests. It looks like the (anti-aliased) XRender extension is still used. The X server can implement requests using whatever method it likes. See: glamor, XRender implemented using opengl.
OpenGL is equally an API, not a specific implementation.
There is no answer to this question, and you can easily construct situations which work either way around, or where only one of the two is available, or where both implement hardware acceleration and don't use the other, etc.
OpenGL provides access to a greater range of GPU capabilities, e.g. shader programming. In that sense, it allows more full control of the hardware.
aside: opengl has a text drawing api?? i am confused.
Perhaps the author of this question intended to include a linux
tag.
Quickly googling, the most recent article I found here. I expect there's better somewhere. There's also a Wikipedia page on GLX