Pixel Dust Game Engine  v0.9.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups
Public Member Functions | List of all members
Font Class Referenceabstract
Inheritance diagram for Font:
Inheritance graph
[legend]
Collaboration diagram for Font:
Collaboration graph
[legend]

Public Member Functions

virtual const char * getFontName () const =0
 
virtual float getFontHeight (int size, uint32 style=Graphics::textStyle_Plain)=0
 adding this to the baseline gives the next baseline position
 
virtual float getFontLeading (int size, uint32 style=Graphics::textStyle_Plain)=0
 
virtual float getFontAscent (int size, uint32 style=Graphics::textStyle_Plain)=0
 the height from the baseline to the top of the tallest character in the font
 
virtual float getFontDescent (int size, uint32 style=Graphics::textStyle_Plain)=0
 the height from the baseline to the bottom of the lowest descending character in the font
 
- Public Member Functions inherited from RefCountedObj
virtual void addRef () const throw ()
 
virtual void release () const throw ()
 

Detailed Description

Font You cannot create fonts directly, they must be loaded by the Graphics Manager

Member Function Documentation

virtual float getFontAscent ( int  size,
uint32  style = Graphics::textStyle_Plain 
)
pure virtual

the height from the baseline to the top of the tallest character in the font

virtual float getFontDescent ( int  size,
uint32  style = Graphics::textStyle_Plain 
)
pure virtual

the height from the baseline to the bottom of the lowest descending character in the font

virtual float getFontHeight ( int  size,
uint32  style = Graphics::textStyle_Plain 
)
pure virtual

adding this to the baseline gives the next baseline position

total height of the font, including leading between lines

virtual float getFontLeading ( int  size,
uint32  style = Graphics::textStyle_Plain 
)
pure virtual

the amount of space between two lines on the font, between the bottom of the decender of the line above and the top of the ascender of the line below

virtual const char* getFontName ( ) const
pure virtual