I hope this question is not too simple to be post in the advanced forum.
How can I render centered text in OpenGL? (in windows, with bitmap fonts created with using wglUseFontBitmaps)
I can’t know the exact lenght of the text. I’ve thought that I could render the text once and check the raster position. But it must be some simpler way.