FTGLExtrdFont Class Reference

#include <FTGLExtrdFont.h>

Inheritance diagram for FTGLExtrdFont:

FTFont FTFont List of all members.

Public Member Functions

 FTGLExtrdFont (const char *fontFilePath)
 FTGLExtrdFont (const unsigned char *pBufferBytes, size_t bufferSizeInBytes)
 ~FTGLExtrdFont ()
void Depth (float d)
 FTGLExtrdFont (const char *fontFilePath)
 FTGLExtrdFont (const unsigned char *pBufferBytes, size_t bufferSizeInBytes)
 ~FTGLExtrdFont ()
void Depth (float d)

Private Member Functions

virtual FTGlyphMakeGlyph (unsigned int glyphIndex)
virtual FTGlyphMakeGlyph (unsigned int glyphIndex)

Private Attributes

float depth

Detailed Description

FTGLExtrdFont is a specialisation of the FTFont class for handling extruded Polygon fonts

See also:
FTFont

FTGLPolygonFont

Definition at line 16 of file FTGLExtrdFont.h.


Constructor & Destructor Documentation

FTGLExtrdFont::FTGLExtrdFont ( const char *  fontFilePath  ) 

Open and read a font file. Sets Error flag.

Parameters:
fontFilePath font file path.

Definition at line 5 of file FTGLExtrdFont.cxx.

FTGLExtrdFont::FTGLExtrdFont ( 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 11 of file FTGLExtrdFont.cxx.

FTGLExtrdFont::~FTGLExtrdFont (  ) 

Destructor

Definition at line 17 of file FTGLExtrdFont.cxx.

FTGLExtrdFont::FTGLExtrdFont ( const char *  fontFilePath  ) 

Open and read a font file. Sets Error flag.

Parameters:
fontFilePath font file path.

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

FTGLExtrdFont::~FTGLExtrdFont (  ) 

Destructor


Member Function Documentation

void FTGLExtrdFont::Depth ( float  d  )  [inline, virtual]

Set the extrusion distance for the font.

Parameters:
d The extrusion distance.

Reimplemented from FTFont.

Definition at line 44 of file FTGLExtrdFont.h.

References depth.

FTGlyph * FTGLExtrdFont::MakeGlyph ( unsigned int  glyphIndex  )  [inline, private, virtual]

Construct a FTPolyGlyph.

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

Implements FTFont.

Definition at line 21 of file FTGLExtrdFont.cxx.

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

void FTGLExtrdFont::Depth ( float  d  )  [inline, virtual]

Set the extrusion distance for the font.

Parameters:
d The extrusion distance.

Reimplemented from FTFont.

Definition at line 44 of file FTGLExtrdFont.h.

References depth.

virtual FTGlyph* FTGLExtrdFont::MakeGlyph ( unsigned int  glyphIndex  )  [inline, private, virtual]

Construct a FTPolyGlyph.

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

Implements FTFont.


Member Data Documentation

float FTGLExtrdFont::depth [private]

The extrusion distance for the font.

Definition at line 58 of file FTGLExtrdFont.h.

Referenced by MakeGlyph().


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