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

Thread: Unable to Render Font

  1. #1
    Newbie Newbie
    Join Date
    Feb 2013
    Posts
    1

    Unable to Render Font

    Hello Everyone,

    I,m working on a project involving OPEN GL ES 2.0 & in my project I,ve to render the fonts as like whenever I enter any text it should appear on Screen at particular location.I am not able to find any such method ..

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Apr 2010
    Location
    Germany
    Posts
    1,099
    No such thing in OpenGL/ES. When trying to render fonts you're on your own. The only thing you can render is a final texture containing the rasterized glyphs produces by some font renderer, like Pango(in conjunction with Cairo) or FreeType. The bitmaps these renderers spit out can then be used as data for setting up a texture object and render it to a screen aligned quad and blend it with the contents of your back-buffer or FBO.

    Here's some links you might find interesting:

    http://code.google.com/p/freetype-gl/
    http://www.cairographics.org/OpenGL/

    I can't offer you any platform specific hints. The above libs will work cross-platform on desktop PCs, i.e. definitely on Windows and Linux. They have also been ported to Android and at least FreeType is also available on iOS. HTH.

  3. #3
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,106
    There is a good chance this will work as well
    http://www.angelcode.com/products/bmfont/

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Apr 2010
    Location
    Germany
    Posts
    1,099
    Thx tonyo, didn't know that tool! Looks awesome.

  5. #5
    Newbie Newbie
    Join Date
    Feb 2013
    Posts
    1
    I have the same problem , thanks for answers .
    I'm beginner too , and it's so good that can find answer to my questions here .
    Thanks .

Posting Permissions

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