Finding Length

Hi,
I am displaying text using wglUseFontOutlines() function.
For example the string is “OpenGL”. How I can find the center position(x,y) of the string.

Thanks,
kannan

NeHe.gamedev.net 's tutorials on fonts (the latter ones anyway) have a function that will find the length of the string and automatialy centre it.

Hi,
In Nehe tutorial 14 (fonts), they are using prespective projecttion. When i am changing from perspective to glOrtho, the text disappears.I dont know what happens,
please explain me.

Thanks,
Kannan