#include <FTGlyph.h>
Inheritance diagram for FTGlyph:
Public Member Functions | |
FTGlyph (FT_Glyph 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. |
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.
|
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, FTExtrdGlyph, FTOutlineGlyph, FTPixmapGlyph, FTPolyGlyph, and FTTextureGlyph. |
|
The advance distance for this glyph.
Definition at line 71 of file FTGlyph.h. Referenced by FTGlyph(), FTTextureGlyph::Render(), FTPolyGlyph::Render(), FTPixmapGlyph::Render(), FTOutlineGlyph::Render(), FTExtrdGlyph::Render(), and FTBitmapGlyph::Render(). |
|
The bounding box of this glyph.
Definition at line 76 of file FTGlyph.h. Referenced by FTExtrdGlyph::FTExtrdGlyph(), and FTGlyph(). |
|
Current error code. Zero means no error. Definition at line 81 of file FTGlyph.h. Referenced by FTBitmapGlyph::FTBitmapGlyph(), FTPixmapGlyph::FTPixmapGlyph(), and FTTextureGlyph::FTTextureGlyph(). |