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

FTGLTextureFont Class Reference

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

#include <FTGLTextureFont.h>

Inheritance diagram for FTGLTextureFont:

FTFont List of all members.

Public Member Functions

 FTGLTextureFont (const char *fontname)
 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.


Detailed Description

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

See also:
FTFont

Definition at line 16 of file FTGLTextureFont.h.


Constructor & Destructor Documentation

FTGLTextureFont::FTGLTextureFont const char *  fontname  ) 
 

Open and read a font file.

Sets Error flag.

Parameters:
fontname font file name.

Definition at line 21 of file FTGLTextureFont.cpp.

References FTFont::face, and 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 37 of file FTGLTextureFont.cpp.

References FTFont::face, and FTFace::GlyphCount().

FTGLTextureFont::~FTGLTextureFont  )  [virtual]
 

Destructor.

Definition at line 53 of file FTGLTextureFont.cpp.


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

References FTFont::face, FTFont::FaceSize(), and FTFace::GlyphCount().

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

References FTFont::Render().

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 159 of file FTGLTextureFont.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