#include <FTFace.h>
Definition at line 18 of file FTFace.h.
Public Member Functions | |
FTFace (const char *fontFilePath) | |
Opens and reads a face file. | |
FTFace (const unsigned char *pBufferBytes, size_t bufferSizeInBytes) | |
Read face data from an in-memory buffer. | |
virtual | ~FTFace () |
Destructor. | |
bool | Attach (const char *fontFilePath) |
Attach auxilliary file to font (e.g., font metrics). | |
bool | Attach (const unsigned char *pBufferBytes, size_t bufferSizeInBytes) |
Attach auxilliary data to font (e.g., font metrics) from memory. | |
FT_Face * | Face () const |
Get the freetype face object.. | |
const FTSize & | Size (const unsigned int size, const unsigned int res) |
Sets the char size for the current face. | |
unsigned int | CharMapCount () |
Get the number of character maps in this face. | |
FT_Encoding * | CharMapList () |
Get a list of character maps in this face. | |
FTPoint | KernAdvance (unsigned int index1, unsigned int index2) |
Gets the kerning vector between two glyphs. | |
FT_GlyphSlot | Glyph (unsigned int index, FT_Int load_flags) |
Loads and creates a Freetype glyph. | |
unsigned int | GlyphCount () const |
Gets the number of glyphs in the current face. | |
FT_Error | Error () const |
Queries for errors. |
|
Opens and reads a face file. Error is set.
Definition at line 6 of file FTFace.cpp. |
|
Read face data from an in-memory buffer. Error is set.
Definition at line 29 of file FTFace.cpp. |
|
Destructor. Disposes of the current Freetype Face. Definition at line 50 of file FTFace.cpp. |
|
Attach auxilliary data to font (e.g., font metrics) from memory.
Definition at line 68 of file FTFace.cpp. References FT_OPEN_MEMORY. |
|
Attach auxilliary file to font (e.g., font metrics).
Definition at line 61 of file FTFace.cpp. Referenced by FTFont::Attach(). |
|
Get the number of character maps in this face.
Definition at line 90 of file FTFace.cpp. Referenced by FTFont::CharMapCount(), and CharMapList(). |
|
Get a list of character maps in this face.
Definition at line 96 of file FTFace.cpp. References CharMapCount(). Referenced by FTFont::CharMapList(). |
|
Queries for errors.
Definition at line 115 of file FTFace.h. Referenced by FTFont::Attach(), FTFont::FaceSize(), FTFont::FTFont(), and FTGlyphContainer::Render(). |
|
Get the freetype face object..
|
|
Loads and creates a Freetype glyph.
Definition at line 133 of file FTFace.cpp. |
|
Gets the number of glyphs in the current face.
Definition at line 108 of file FTFace.h. Referenced by FTGLTextureFont::FaceSize(), and FTGLTextureFont::FTGLTextureFont(). |
|
Gets the kerning vector between two glyphs.
Definition at line 111 of file FTFace.cpp. Referenced by FTGlyphContainer::Advance(), and FTGlyphContainer::Render(). |
|
Sets the char size for the current face. This doesn't guarantee that the size was set correctly. Clients should check errors.
Definition at line 81 of file FTFace.cpp. References FTSize::CharSize(), and FTSize::Error(). Referenced by FTFont::FaceSize(). |