You probably want to use simd-optimized pixman[1] for rendering rectangles and glyphs. There is also luigi[2] which draws without opengl and written in C.
[1] https://github.com/freedesktop/pixman [2] https://github.com/nakst/luigi
[1] https://github.com/freedesktop/pixman [2] https://github.com/nakst/luigi