Freetype font problem

Hello,

I am rendering text with the help of this tutorial

It is quite amazing and very easy to use. But every time, the font name must be specified. Which is difficult to do (to pass the font file name from GUI). Apart from this, when user zooms the OpenGL window using mouse scroll or using rubber band tool, then the text becomes small or big(depend on whether user zooms in or out). What can I do to rescale and maintain the constant size of the text whenever opengl window is zoomed?

Thanks

Regards
Rakesh Patil

Hi,

No replies with regards to the problem. I was trying to workout on this. It’s like based on the distance of camera and object, the object must be re-sized every time. Now how do I get the distance of camera and object?

Thanks in advance