Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

Fonts in OpenGL (possible options)


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 Acharis   Members   -  Reputation: 880

Like
0Likes
Like

Posted 23 December 2012 - 09:09 AM

I have been look at this and it seems the NeHe tutorial for FreeType fonts (http://nehe.gamedev.net/tutorial/freetype_fonts_in_opengl/24001/ ) is the most reasonable solution... There are some frameworks but these seems to be not documented and/or have rumours to be slow. Or maybe there are other solutions you could recommend?

 

I'm asking for a practical solution, what you personally found the best and most hasslefree.

 



Ad:

#2 samoth   Members   -  Reputation: 1947

Like
0Likes
Like

Posted 23 December 2012 - 11:41 AM

Textured quads with signed distance field textures are the one solution that works well, and with good quality.

Read this: http://www.valvesoftware.com/publications/2007/SIGGRAPH2007_AlphaTestedMagnification.pdf

Edited by samoth, 23 December 2012 - 11:42 AM.


#3 Necrolis   Members   -  Reputation: 690

Like
1Likes
Like

Posted 23 December 2012 - 03:39 PM

Give freetype-gl a look-through, its simple and has support for quite a few font features (as well as signed distance fields). It also has so code reuse features, so you can use the same code to render primitives and 2D-textured quads.



#4 mattdesl   Members   -  Reputation: 142

Like
0Likes
Like

Posted 24 December 2012 - 06:51 PM

If you do not need perfectly scalable fonts, then plain old bitmap fonts are very simple and hassle-free. 

 

You can see my minimal implementation here.



#5 slicer4ever   Crossbones+   -  Reputation: 1443

Like
1Likes
Like

Posted 25 December 2012 - 09:37 AM

windows has wglUseFontOutline

 

however i'm in the camp of just using textured quads to render font(generated via LibFreeType), you could also use the geometry shader/vertex points to pass even less data to the gpu for on-demand font drawing.


Check out https://www.facebook.com/LiquidGames for some great games made by me on the Playstation Mobile market.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS