#include <FTGlyph.h>
Inheritance diagram for FTGlyph:
It provides the interface between Freetype glyphs and their openGL renderable counterparts. This is an abstract class and derived classes must implement the render
function.
Definition at line 25 of file FTGlyph.h.
Public Member Functions | |
FTGlyph (FT_GlyphSlot glyph) | |
Constructor. | |
virtual | ~FTGlyph () |
Destructor. | |
virtual float | Render (const FTPoint &pen)=0 |
Renders this glyph at the current pen position. | |
float | Advance () const |
Return the advance width for this glyph. | |
const FTBBox & | BBox () const |
Return the bounding box for this glyph. | |
FT_Error | Error () const |
Queries for errors. | |
Protected Attributes | |
float | advance |
The advance distance for this glyph. | |
FTBBox | bBox |
The bounding box of this glyph. | |
FT_Error | err |
Current error code. |
|
Constructor.
Definition at line 4 of file FTGlyph.cpp. |
|
Destructor.
Definition at line 16 of file FTGlyph.cpp. |
|
Return the advance width for this glyph.
|
|
Return the bounding box for this glyph.
|
|
Queries for errors.
|
|
Renders this glyph at the current pen position.
Implemented in FTBitmapGlyph, FTBufferGlyph, FTExtrdGlyph, FTOutlineGlyph, FTPixmapGlyph, FTPolyGlyph, and FTTextureGlyph. |
|
The advance distance for this glyph.
Definition at line 71 of file FTGlyph.h. Referenced by FTGlyph(). |
|
The bounding box of this glyph.
Definition at line 76 of file FTGlyph.h. Referenced by FTGlyph(). |
|
Current error code. Zero means no error. |