OpenGL-FreeType Library (open source)

Moderators: Moderator, Global Moderator

Post Reply
Tami
Administrator
Administrator
Posts: 10892
Joined: Sun Apr 25, 2004 1:05 pm

OpenGL-FreeType Library (open source)

Post by Tami »

[url=\"http://oglft.sourceforge.net/\"]OpenGL-FreeType Library[/url]

This C++ library supplies an interface between the fonts on your system and an OpenGL or Mesa application. It uses the excellent FreeType library to read font faces from their files and renders text strings as OpenGL primitives.

[url=\"http://sourceforge.net/projects/oglft\"]OGLFT is hosted on SourceForge[/url]. If you have questions or comments, try out the OLGFT mailing list.

Important Note

Versions 2.0.9 through 2.1.2 of the FreeType library contain a bug which prevents rotated text from being displayed properly. OGLFT makes no attempt to work around this.

Features

Here is an overview of the features of this library:

* Characters can be rendered in several ways:
1. Outlines extracted directly from vector font face data (the lines and curves in TrueType and Type1 formats)
2. Tessellated, filled polygons
3. Extruded solids (through the GLE Tubing and Extrusion library)
4. Monochrome bitmaps
5. Solid grayscale, antialiased pixmaps
6. Translucent antialiased pixmaps
7. As texture maps

* Glyphs can be drawn individually or as a string.

* If OGLFT is compiled with Qt support, glyphs can be rendered using UNICODE characters via the QString class.

* You can also combine several fonts together in one OGLFT Face in order to increase the coverage of UNICODE points or for other special effects.

* Strings can be rotated through any angle. Additionally each character in a string can be rotated through a given angle. Alternatively, each rendered string or individual character can have its own transformation matrix (or any other set of OpenGL operations which can be compiled into a display list).

* PHIGS-like capability to draw right, centered or left justified strings.

* Each rendered glyph is available as an OpenGL display list (although the application does not normally need to deal with this information). In the case of defining the glyphs as texture maps, a texture object is stored for each glyph.

* A face (i.e., all the glyphs in a face) can map a coloration and/or texture function to the coordinates of the glyphs.

* You can draw formatted numbers using the usual printf-style formats. There is also a special format (%p) which will draw the number as a fraction.
Image

[color=\"#41211C\"]It takes years to build up trust and only seconds to destroy it

[/color]
Post Reply

Return to “Fonts Icons Cursors & Screensavers”