Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members

FTGLPixmapFont Class Reference

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

#include <FTGLPixmapFont.h>

Inheritance diagram for FTGLPixmapFont:

FTFont List of all members.

Public Member Functions

 FTGLPixmapFont (const char *fontname)
 Open and read a font file.

 FTGLPixmapFont (const unsigned char *pBufferBytes, size_t bufferSizeInBytes)
 Open and read a font from a buffer in memory.

 ~FTGLPixmapFont ()
 Destructor.

void Render (const char *string)
 Renders a string of characters.

void Render (const wchar_t *string)
 Renders a string of characters.


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 *  fontname  ) 
 

Open and read a font file.

Sets Error flag.

Parameters:
fontname font file name.

Definition at line 5 of file FTGLPixmapFont.cpp.

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.cpp.

FTGLPixmapFont::~FTGLPixmapFont  ) 
 

Destructor.

Definition at line 15 of file FTGLPixmapFont.cpp.


Member Function Documentation

void FTGLPixmapFont::Render const wchar_t *  string  )  [virtual]
 

Renders a string of characters.

Parameters:
string wchar_t string to be output.

Reimplemented from FTFont.

Definition at line 50 of file FTGLPixmapFont.cpp.

References FTFont::Render().

void FTGLPixmapFont::Render const char *  string  )  [virtual]
 

Renders a string of characters.

Parameters:
string 'C' style string to be output.

Reimplemented from FTFont.

Definition at line 34 of file FTGLPixmapFont.cpp.

References FTFont::Render().


The documentation for this class was generated from the following files:
Generated on Mon Aug 25 15:16:40 2003 for FTGL by doxygen 1.3.3