Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Freetype font problem

  1. #1
    Intern Newbie
    Join Date
    Jun 2009
    Posts
    49

    Question Freetype font problem

    Hello,

    I am rendering text with the help of this tutorial

    http://nehe.gamedev.net/tutorial/fre..._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

  2. #2
    Intern Newbie
    Join Date
    Jun 2009
    Posts
    49
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •