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 4 of 4

Thread: Text, Fonts, etc

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2012
    Posts
    15

    Text, Fonts, etc

    I have a program that is displaying with openGL.

    Its a graphics program very similar to a Photoshop or Corel type program.

    Im also using OpenCV (to do a lot of my image manipulations, and other stuff that OpenCV offers).

    I want to allow the users to add Text to the image.... Any advice on how to do this with either OpenCV, or OpenGL? Or if not, any suggestions on how to do it?

    it seems that neither one of the two support fonts/texts which is kind of surprising to me.

    I want to be able to use OpenCV to do things with the lettering as well which will require some image processing...

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,098
    Text is not directly supported in OpenGL = the most common way to render text is to create a bitmap of the text and render it with a quad blit. One way is to use this open source http://www.angelcode.com/products/bmfont/

  3. #3
    Junior Member Newbie
    Join Date
    Nov 2012
    Posts
    15
    I was assuming i had to do something like that.... If anyone has some simple examples i would love to see them before doing a Google search....

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,098
    That link has a full working code for OpenGL about half way down the page

Posting Permissions

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