FTGLOutlineFont Class Reference

#include <FTGLOutlineFont.h>

Inheritance diagram for FTGLOutlineFont:

FTFont FTFont List of all members.

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 FTGlyphMakeGlyph (unsigned int g)
virtual FTGlyphMakeGlyph (unsigned int g)

Detailed Description

FTGLOutlineFont is a specialisation of the FTFont class for handling Vector Outline fonts

See also:
FTFont

Definition at line 17 of file FTGLOutlineFont.h.


Constructor & Destructor Documentation

FTGLOutlineFont::FTGLOutlineFont ( const char *  fontFilePath  ) 

Open and read a font file. Sets Error flag.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
pBufferBytes the in-memory buffer
bufferSizeInBytes the length of the buffer in bytes

FTGLOutlineFont::~FTGLOutlineFont (  ) 

Destructor


Member Function Documentation

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.

Parameters:
g The glyph index NOT the char code.
Returns:
An FTOutlineGlyph or 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.

Parameters:
g The glyph index NOT the char code.
Returns:
An FTOutlineGlyph or null on failure.

Implements FTFont.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:25:32 2011 for ROOT_528-00b_version by  doxygen 1.5.1