In TAChart we use the LazFreeType routines for painting text in OpenGL: unit TAOpenGL contains the basic class, TGLFreeTypeHelper, and is pretty much self-contained. It requires TAFonts which is self-contained, too. Application of TGLFreeTypeHelper can be seen in unit TAOpenGLDrawer. You find all these units in folder components/tachart of your Lazarus installation.