OpenGL does not support drawing text. You need to use some library to render text into a bitmap, and then you can use OpenGL to render the bitmap. Freetype2 and Pango are good low-level cross-platform solutions. Game programming libraries, such as the ClanLib and GUI libraries, such as Qt, may also have their own ways to render text.