Main Page | Class Hierarchy | Data Structures | File List | Data Fields | Globals

FTGLTextureFont Class Reference

#include <FTGLTextureFont.h>

Inheritance diagram for FTGLTextureFont:

FTFont

Detailed Description

FTGLTextureFont is a specialisation of the FTFont class for handling Texture mapped fonts.

See also:
FTFont

Definition at line 17 of file FTGLTextureFont.h.

Public Member Functions

 FTGLTextureFont (const char *fontFilePath)
 Open and read a font file.

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

virtual ~FTGLTextureFont ()
 Destructor.

virtual bool FaceSize (const unsigned int size, const unsigned int res=72)
 Set the char size for the current face.

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

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


Constructor & Destructor Documentation

FTGLTextureFont::FTGLTextureFont const char *  fontFilePath  ) 
 

Open and read a font file.

Sets Error flag.

Parameters:
fontFilePath font file path.

Definition at line 21 of file FTGLTextureFont.cpp.

References FTFace::GlyphCount().

FTGLTextureFont::FTGLTextureFont 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 36 of file FTGLTextureFont.cpp.

References FTFace::GlyphCount().

FTGLTextureFont::~FTGLTextureFont  )  [virtual]
 

Destructor.

Definition at line 51 of file FTGLTextureFont.cpp.

References FTVector< GLuint >::size().


Member Function Documentation

bool FTGLTextureFont::FaceSize const unsigned int  size,
const unsigned int  res = 72
[virtual]
 

Set the char size for the current face.

Parameters:
size the face size in points (1/72 inch)
res the resolution of the target device.
Returns:
true if size was set correctly

Reimplemented from FTFont.

Definition at line 140 of file FTGLTextureFont.cpp.

References FTVector< GLuint >::clear(), FTVector< GLuint >::empty(), FTFont::FaceSize(), FTFace::GlyphCount(), and FTVector< GLuint >::size().

void FTGLTextureFont::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 168 of file FTGLTextureFont.cpp.

References FTFont::Render(), and FTTextureGlyph::ResetActiveTexture().

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

Renders a string of characters.

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

Reimplemented from FTFont.

Definition at line 153 of file FTGLTextureFont.cpp.

References FTFont::Render(), and FTTextureGlyph::ResetActiveTexture().


The documentation for this class was generated from the following files:
Generated on Sun Dec 5 22:24:07 2004 for FTGL by doxygen 1.3.6