ResearchBlog‎ > ‎

TrueType/FreeType Font Rendering in 3D

posted Mar 31, 2012, 10:07 PM by Teng-Yok Lee   [ updated May 7, 2012, 5:45 PM ]
The following pages might be helpful:


FreeType Fonts in OpenGL,http://nehe.gamedev.net/tutorial/freetype_fonts_in_opengl/24001/
The sample code can be directly executed.

FTGL: http://sourceforge.net/projects/ftgl/
Quoted from the official webpage:
FTGL is a free cross-platform Open Source C++ library that uses Freetype2 to simplify rendering fonts in OpenGL applications. FTGL supports bitmaps, pixmaps, texture maps, outlines, polygon mesh, and extruded polygon rendering modes.

wglUseFontOutlines function,http://msdn.microsoft.com/en-us/library/dd374393%28v=vs.85%29.aspx
Quoted from its page on MSDN:
The wglUseFontOutlines function creates a set of display lists, one for each glyph of the currently selected outline font of a device context, for use with the current rendering context. The display lists are used to draw 3-D characters of TrueType fonts. Each display list describes a glyph outline in floating-point coordinates.

http://www.opengl.org/news/permalink/shikoba-opengl-3-font-library/

Shikoba: https://github.com/Queatz/Shikoba
Quoted from OpenGL.org (http://www.opengl.org/news/permalink/shikoba-opengl-3-font-library/)

Shikoba: OpenGL 3+ Font Library

May 07, 2012

Shikoba is a C++ text library for OpenGL 3 and above using the FreeType 2 library. It fills a single GL_TEXTURE_RECTANGLE with a GL_R8 charmap and returns vertex and texture coordinate information for each requested glyph. The texture ID and glyph information never change and are valid until the destruction of the Library object.

Comments