Logo Search packages:      
Sourcecode: octplot version File versions  Download package

FTFont Class Reference

#include <FTFont.h>

Inheritance diagram for FTFont:

FTGLBitmapFont FTGLExtrdFont FTGLOutlineFont FTGLPixmapFont FTGLPolygonFont FTGLTextureFont

List of all members.


Detailed Description

FTFont is the public interface for the FTGL library.

Specific font classes are derived from this class. It uses the helper classes FTFace and FTSize to access the Freetype library. This class is abstract and deriving classes must implement the protected MakeGlyph function to create glyphs of the appropriate type.

It is good practice after using these functions to test the error code returned. FT_Error Error(). Check the freetype file fterrdef.h for error definitions.

See also:
FTFace

FTSize

FTGlyphContainer

FTGlyph

Definition at line 32 of file FTFont.h.


Public Member Functions

float Advance (const char *string)
float Advance (const wchar_t *string)
float Ascender () const
bool Attach (const unsigned char *pBufferBytes, size_t bufferSizeInBytes)
bool Attach (const char *fontFilePath)
void BBox (const wchar_t *string, float &llx, float &lly, float &llz, float &urx, float &ury, float &urz)
void BBox (const char *string, float &llx, float &lly, float &llz, float &urx, float &ury, float &urz)
bool CharMap (FT_Encoding encoding)
unsigned int CharMapCount ()
FT_Encoding * CharMapList ()
virtual void Depth (float depth)
float Descender () const
FT_Error Error () const
unsigned int FaceSize () const
virtual bool FaceSize (const unsigned int size, const unsigned int res=72)
 FTFont (const unsigned char *pBufferBytes, size_t bufferSizeInBytes)
 FTFont (const char *fontFilePath)
float LineHeight () const
virtual void Render (const wchar_t *string)
virtual void Render (const char *string)
void UseDisplayList (bool useList)
virtual ~FTFont ()

Protected Member Functions

virtual FTGlyphMakeGlyph (unsigned int g)=0

Protected Attributes

FTSize charSize
FT_Error err
FTFace face
bool useDisplayLists

Private Member Functions

bool CheckGlyph (const unsigned int chr)

Private Attributes

FTGlyphContainerglyphList
FTPoint pen

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index