PDA

View Full Version : Freetype font problem



rakeshthp
07-03-2012, 12:00 AM
Hello,

I am rendering text with the help of this tutorial

http://nehe.gamedev.net/tutorial/freetype_fonts_in_opengl/24001/

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

rakeshthp
07-04-2012, 09:34 PM
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