#include <FTGLOutlineFont.h>
Inheritance diagram for FTGLOutlineFont:
Public Member Functions | |
FTGLOutlineFont (const char *fontFilePath) | |
FTGLOutlineFont (const unsigned char *pBufferBytes, size_t bufferSizeInBytes) | |
~FTGLOutlineFont () | |
virtual void | PreRender () |
virtual void | PostRender () |
FTGLOutlineFont (const char *fontFilePath) | |
FTGLOutlineFont (const unsigned char *pBufferBytes, size_t bufferSizeInBytes) | |
~FTGLOutlineFont () | |
virtual void | PreRender () |
virtual void | PostRender () |
Private Member Functions | |
virtual FTGlyph * | MakeGlyph (unsigned int g) |
virtual FTGlyph * | MakeGlyph (unsigned int g) |
Definition at line 17 of file FTGLOutlineFont.h.
FTGLOutlineFont::FTGLOutlineFont | ( | const char * | fontFilePath | ) |
Open and read a font file. Sets Error flag.
fontFilePath | font file path. |
Definition at line 5 of file FTGLOutlineFont.cxx.
FTGLOutlineFont::FTGLOutlineFont | ( | const unsigned char * | pBufferBytes, | |
size_t | bufferSizeInBytes | |||
) |
Open and read a font from a buffer in memory. Sets Error flag.
pBufferBytes | the in-memory buffer | |
bufferSizeInBytes | the length of the buffer in bytes |
Definition at line 10 of file FTGLOutlineFont.cxx.
FTGLOutlineFont::~FTGLOutlineFont | ( | ) |
Destructor
Definition at line 15 of file FTGLOutlineFont.cxx.
FTGLOutlineFont::FTGLOutlineFont | ( | const char * | fontFilePath | ) |
Open and read a font file. Sets Error flag.
fontFilePath | font file path. |
FTGLOutlineFont::FTGLOutlineFont | ( | const unsigned char * | pBufferBytes, | |
size_t | bufferSizeInBytes | |||
) |
Open and read a font from a buffer in memory. Sets Error flag.
pBufferBytes | the in-memory buffer | |
bufferSizeInBytes | the length of the buffer in bytes |
FTGLOutlineFont::~FTGLOutlineFont | ( | ) |
Destructor
void FTGLOutlineFont::PreRender | ( | ) | [virtual] |
Prepare for rendering
Reimplemented from FTFont.
Definition at line 34 of file FTGLOutlineFont.cxx.
References GL_BLEND, GL_COLOR_BUFFER_BIT, GL_DONT_CARE, GL_ENABLE_BIT, GL_HINT_BIT, GL_LINE_BIT, GL_LINE_SMOOTH, GL_LINE_SMOOTH_HINT, GL_ONE_MINUS_SRC_ALPHA, GL_SRC_ALPHA, GL_TEXTURE_2D, glBlendFunc(), glDisable(), glEnable(), glHint(), glPushAttrib(), and FTFont::PreRender().
void FTGLOutlineFont::PostRender | ( | ) | [virtual] |
Cleanup after rendering
Reimplemented from FTFont.
Definition at line 48 of file FTGLOutlineFont.cxx.
References glPopAttrib(), and FTFont::PostRender().
FTGlyph * FTGLOutlineFont::MakeGlyph | ( | unsigned int | g | ) | [inline, private, virtual] |
Construct a FTOutlineGlyph.
g | The glyph index NOT the char code. |
null
on failure. Implements FTFont.
Definition at line 19 of file FTGLOutlineFont.cxx.
References FTFont::err, FTFace::Error(), FTFont::face, FT_LOAD_NO_HINTING, FTFace::Glyph(), NULL, and FTFont::useDisplayLists.
virtual void FTGLOutlineFont::PreRender | ( | ) | [virtual] |
Prepare for rendering
Reimplemented from FTFont.
virtual void FTGLOutlineFont::PostRender | ( | ) | [virtual] |
Cleanup after rendering
Reimplemented from FTFont.
virtual FTGlyph* FTGLOutlineFont::MakeGlyph | ( | unsigned int | g | ) | [inline, private, virtual] |
Construct a FTOutlineGlyph.
g | The glyph index NOT the char code. |
null
on failure. Implements FTFont.