-
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 ..
-
Advanced Member
Frequent Contributor
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.
-
Advanced Member
Frequent Contributor
There is a good chance this will work as well
http://www.angelcode.com/products/bmfont/
-
Advanced Member
Frequent Contributor
Thx tonyo, didn't know that tool! Looks awesome.
-
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
-
Forum Rules