Cafu Engine
cf::TrueTypeFontT::FontInfoT Class Reference

Public Member Functions

 FontInfoT (const std::string &FontName, int SizeInPixels_)
 The constructor. More...
 
 ~FontInfoT ()
 The destructor. More...
 

Public Attributes

float SizeInPixels
 The size of this font in pixels, i.e. 12, 24 or 48. More...
 
float Ascender
 The highest coordinate above the baseline in this font face, in pixels. More...
 
float Descender
 The lowest coordinate above the baseline in this font face, in pixels. More...
 
float Height
 The height of this font face, in pixels. Usually larger than Ascender-Descender, as this is to be used as the default value for the line spacing ("line gap"). More...
 
unsigned long CharToGlyphIndex [256]
 Maps each ASCII character to the index into GlyphInfos of its related GlyphInfoT. More...
 
ArrayT< GlyphInfoT * > GlyphInfos
 The GlyphInfos for this font. More...
 
ArrayT< std::map< int, float > > KerningTable
 The kerning table, expressed as a "half-sparse" matrix. More...
 
ArrayT< MaterialT * > Materials
 The materials with the larger bitmaps that contain the glyphs. More...
 
ArrayT< MatSys::RenderMaterialT * > RenderMaterials
 The render materials matching the Materials array. More...
 

Constructor & Destructor Documentation

TrueTypeFontT::FontInfoT::FontInfoT ( const std::string &  FontName,
int  SizeInPixels_ 
)

The constructor.

Exceptions
TextParserT::ParseErrorTif the cfont file for the desired pixel size could not be successfully opened and parsed.
TrueTypeFontT::FontInfoT::~FontInfoT ( )

The destructor.

Member Data Documentation

float cf::TrueTypeFontT::FontInfoT::Ascender

The highest coordinate above the baseline in this font face, in pixels.

unsigned long cf::TrueTypeFontT::FontInfoT::CharToGlyphIndex[256]

Maps each ASCII character to the index into GlyphInfos of its related GlyphInfoT.

float cf::TrueTypeFontT::FontInfoT::Descender

The lowest coordinate above the baseline in this font face, in pixels.

ArrayT<GlyphInfoT*> cf::TrueTypeFontT::FontInfoT::GlyphInfos

The GlyphInfos for this font.

float cf::TrueTypeFontT::FontInfoT::Height

The height of this font face, in pixels. Usually larger than Ascender-Descender, as this is to be used as the default value for the line spacing ("line gap").

ArrayT< std::map<int, float> > cf::TrueTypeFontT::FontInfoT::KerningTable

The kerning table, expressed as a "half-sparse" matrix.

ArrayT<MaterialT*> cf::TrueTypeFontT::FontInfoT::Materials

The materials with the larger bitmaps that contain the glyphs.

ArrayT<MatSys::RenderMaterialT*> cf::TrueTypeFontT::FontInfoT::RenderMaterials

The render materials matching the Materials array.

float cf::TrueTypeFontT::FontInfoT::SizeInPixels

The size of this font in pixels, i.e. 12, 24 or 48.


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