FTGLPixmapFont Class Reference

#include <FTGLPixmapFont.h>

Inheritance diagram for FTGLPixmapFont:

FTFont FTFont List of all members.

Public Member Functions

 FTGLPixmapFont (const char *fontFilePath)
 FTGLPixmapFont (const unsigned char *pBufferBytes, size_t bufferSizeInBytes)
 ~FTGLPixmapFont ()
virtual void PreRender ()
virtual void PostRender ()
 FTGLPixmapFont (const char *fontFilePath)
 FTGLPixmapFont (const unsigned char *pBufferBytes, size_t bufferSizeInBytes)
 ~FTGLPixmapFont ()
virtual void PreRender ()
virtual void PostRender ()

Private Member Functions

virtual FTGlyphMakeGlyph (unsigned int g)
virtual FTGlyphMakeGlyph (unsigned int g)

Detailed Description

FTGLPixmapFont is a specialisation of the FTFont class for handling Pixmap (Grey Scale) fonts

See also:
FTFont

Definition at line 18 of file FTGLPixmapFont.h.


Constructor & Destructor Documentation

FTGLPixmapFont::FTGLPixmapFont ( const char *  fontFilePath  ) 

Open and read a font file. Sets Error flag.

Parameters:
fontFilePath font file path.

Definition at line 5 of file FTGLPixmapFont.cxx.

FTGLPixmapFont::FTGLPixmapFont ( 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 FTGLPixmapFont.cxx.

FTGLPixmapFont::~FTGLPixmapFont (  ) 

Destructor

Definition at line 15 of file FTGLPixmapFont.cxx.

FTGLPixmapFont::FTGLPixmapFont ( const char *  fontFilePath  ) 

Open and read a font file. Sets Error flag.

Parameters:
fontFilePath font file path.

FTGLPixmapFont::FTGLPixmapFont ( 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

FTGLPixmapFont::~FTGLPixmapFont (  ) 

Destructor


Member Function Documentation

void FTGLPixmapFont::PreRender (  )  [virtual]

Prepare for rendering

Reimplemented from FTFont.

Definition at line 34 of file FTGLPixmapFont.cxx.

References GL_ALPHA_SCALE, GL_ALPHA_TEST, GL_BLEND, GL_BLUE_SCALE, GL_CLIENT_PIXEL_STORE_BIT, GL_COLOR_BUFFER_BIT, GL_CURRENT_RASTER_COLOR, GL_ENABLE_BIT, GL_GEQUAL, GL_GREEN_SCALE, GL_ONE_MINUS_SRC_ALPHA, GL_PIXEL_MODE_BIT, GL_RED_SCALE, GL_SRC_ALPHA, GL_TEXTURE_2D, glAlphaFunc(), glBlendFunc(), glDisable(), glEnable(), glGetFloatv(), glPixelTransferf(), glPushAttrib(), glPushClientAttrib(), and FTFont::PreRender().

void FTGLPixmapFont::PostRender (  )  [virtual]

Cleanup after rendering

Reimplemented from FTFont.

Definition at line 57 of file FTGLPixmapFont.cxx.

References glPopAttrib(), glPopClientAttrib(), and FTFont::PostRender().

FTGlyph * FTGLPixmapFont::MakeGlyph ( unsigned int  g  )  [inline, private, virtual]

Construct a FTPixmapGlyph.

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

Implements FTFont.

Definition at line 19 of file FTGLPixmapFont.cxx.

References FTFont::err, FTFace::Error(), FTFont::face, FT_LOAD_NO_HINTING, FTFace::Glyph(), and NULL.

virtual void FTGLPixmapFont::PreRender (  )  [virtual]

Prepare for rendering

Reimplemented from FTFont.

virtual void FTGLPixmapFont::PostRender (  )  [virtual]

Cleanup after rendering

Reimplemented from FTFont.

virtual FTGlyph* FTGLPixmapFont::MakeGlyph ( unsigned int  g  )  [inline, private, virtual]

Construct a FTPixmapGlyph.

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