#include <FTGlyphContainer.h>
Definition at line 22 of file FTGlyphContainer.h.
Public Member Functions | |
FTGlyphContainer (FTFace *face) | |
Constructor. | |
~FTGlyphContainer () | |
Destructor. | |
bool | CharMap (FT_Encoding encoding) |
Sets the character map for the face. | |
unsigned int | FontIndex (const unsigned int characterCode) const |
Get the font index of the input character. | |
void | Add (FTGlyph *glyph, const unsigned int characterCode) |
Adds a glyph to this glyph list. | |
const FTGlyph *const | Glyph (const unsigned int characterCode) const |
Get a glyph from the glyph list. | |
FTBBox | BBox (const unsigned int characterCode) const |
Get the bounding box for a character. | |
float | Advance (const unsigned int characterCode, const unsigned int nextCharacterCode) |
Returns the kerned advance width for a glyph. | |
FTPoint | Render (const unsigned int characterCode, const unsigned int nextCharacterCode, FTPoint penPosition) |
Renders a character. | |
FT_Error | Error () const |
Queries the Font for errors. |
|
Constructor.
Definition at line 7 of file FTGlyphContainer.cpp. References FTVector< FT_VECTOR_ITEM_TYPE >::push_back(). |
|
Destructor.
Definition at line 16 of file FTGlyphContainer.cpp. References FTVector< FT_VECTOR_ITEM_TYPE >::begin(), FTVector< FT_VECTOR_ITEM_TYPE >::clear(), and FTVector< FT_VECTOR_ITEM_TYPE >::end(). |
|
Adds a glyph to this glyph list.
Definition at line 43 of file FTGlyphContainer.cpp. References FTCharmap::InsertIndex(), FTVector< FT_VECTOR_ITEM_TYPE >::push_back(), and FTVector< FT_VECTOR_ITEM_TYPE >::size(). |
|
Returns the kerned advance width for a glyph.
Definition at line 63 of file FTGlyphContainer.cpp. References FTCharmap::FontIndex(), FTCharmap::GlyphListIndex(), FTFace::KernAdvance(), and FTPoint::X(). Referenced by FTFont::Advance(), and FTFont::BBox(). |
|
Get the bounding box for a character.
Definition at line 57 of file FTGlyphContainer.cpp. References FTCharmap::GlyphListIndex(). Referenced by FTFont::BBox(). |
|
Sets the character map for the face.
Definition at line 29 of file FTGlyphContainer.cpp. References FTCharmap::CharMap(), and FTCharmap::Error(). Referenced by FTFont::CharMap(). |
|
Queries the Font for errors.
Definition at line 102 of file FTGlyphContainer.h. Referenced by FTFont::CharMap(). |
|
Get the font index of the input character.
Definition at line 37 of file FTGlyphContainer.cpp. References FTCharmap::FontIndex(). |
|
Get a glyph from the glyph list.
Definition at line 50 of file FTGlyphContainer.cpp. References FTCharmap::GlyphListIndex(). |
|
Renders a character.
Definition at line 75 of file FTGlyphContainer.cpp. References FTFace::Error(), FTCharmap::FontIndex(), FTCharmap::GlyphListIndex(), and FTFace::KernAdvance(). Referenced by FTFont::Render(). |