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
Regardless of the image engine you finally use (also don't forget Wayland!) you want to talk to harbuzz-ng, freebidi, fontconfig and freetype for text. Unicode and Opentype are moving so fast those days it's not remotely interesting to reimplement the corresponding engines yourself.
You may think 7-bit ascii is sufficient, but even embedded appliances do more now (if only to render i18n streams, music tags and so on).
Pango-Cairo used to be the standard way to integrate all of those. But many big apps are moving to skia for speed nowadays.