About GLFT_Font
GLFT_Font is originally by James Turk although it is based on the work of Marijn Haverbeke. GLFT_Font allows programmers to use fonts in their OpenGL applications with great ease on any platform for which both FreeType2 and OpenGL are available.
Obtaining GLFT_Font
The latest copy of GLFT_Font will be available via this website.
At the moment the latest version is 0.2.1.
Using GLFT_Font
Using GLFT_Font is designed to be extremely simple. The simplest use is:
#include "GLFT_Font.h"...
glEnable(GL_TEXTURE_2D);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);
...
GLFT_Font fnt("somefont.ttf", size);
...
fnt.drawText(x, y, "Hello World");
GLFT_Font also includes support for finding the width/height of a string and
drawText supports printf-style argument formatting.
New in 0.2: GLFT_Font now allows outputting text using C++
style stream operators.
Changelog
- Version 0.2.1 - Updated website to polimath.com
- Version 0.2 - 18 July 2005 - Added beginDraw/endDraw and changed vsprintf to vsnprintf
- Version 0.1 - 1 July 2005 - Initial Release
Popularity: 1%

