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

gltext::Font Class Reference

#include <gltext.h>

Inheritance diagram for gltext::Font:

Inheritance graph
[legend]
Collaboration diagram for gltext::Font:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char *GLTEXT_CALL getName ()=0
 Gets the name of this font.

virtual Glyph *GLTEXT_CALL getGlyph (unsigned char c)=0
virtual int GLTEXT_CALL getSize ()=0
 Gets the point size of this font.

virtual int GLTEXT_CALL getDPI ()=0
virtual int GLTEXT_CALL getAscent ()=0
virtual int GLTEXT_CALL getDescent ()=0
virtual int GLTEXT_CALL getLineGap ()=0
virtual int GLTEXT_CALL getKerning (unsigned char l, unsigned char r)=0

Detailed Description

Represents a particular font face.


Member Function Documentation

virtual int GLTEXT_CALL gltext::Font::getAscent   [pure virtual]
 

Gets the ascent of this font. This is the distance from the baseline to the top of the tallest glyph of this font.

virtual int GLTEXT_CALL gltext::Font::getDescent   [pure virtual]
 

Gets the descent of this font. This is the distance from the baseline to the bottom of the glyph that descends the most from the baseline.

virtual int GLTEXT_CALL gltext::Font::getDPI   [pure virtual]
 

Returns the DPI value passed to OpenFont() when this font was created.

virtual Glyph* GLTEXT_CALL gltext::Font::getGlyph unsigned char    c [pure virtual]
 

Returns the glyph object associated with the character c in the font.

virtual int GLTEXT_CALL gltext::Font::getKerning unsigned char    l,
unsigned char    r
[pure virtual]
 

Returns the kerning distance between character c1 and character c2. The kerning distance is added to the previous character's advance distance.

virtual int GLTEXT_CALL gltext::Font::getLineGap   [pure virtual]
 

Gets the distance that must be placed between two lines of text. Thus the baseline to baseline distance can be computed as ascent + descent + linegap.


The documentation for this class was generated from the following file:
Generated on Mon Aug 4 22:04:30 2003 for GLText by doxygen1.3-rc1