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,
The sample code can be directly executed.

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,
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.

Quoted from (

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.