Cafu Engine
cf::TrueTypeFontT::GlyphInfoT Struct Reference

Public Member Functions

 GlyphInfoT (TextParserT &TP, const ArrayT< MatSys::RenderMaterialT * > &RenderMaterials)
 

Public Attributes

float BearingX
 The horizontal offset of the bitmap relative to the cursor position. More...
 
float BearingY
 The vertical offset of the bitmap relative to the cursor position (y-axis points up!). More...
 
float AdvanceX
 How much the cursor position should be advanced horizontally for rendering the next character. More...
 
int Width
 The width in pixels of the bitmap of this glyph. More...
 
int Height
 The height in pixels of the bitmap of this glyph. More...
 
MatSys::RenderMaterialTRM
 The RenderMaterialT that represents the larger bitmap that this glyph is embedded in. Points into the FontInfoT::RenderMaterials array of its FontInfoT. More...
 
float s1
 The s1 tex-coord into the larger bitmap. More...
 
float t1
 The t1 tex-coord into the larger bitmap. More...
 
float s2
 The s2 tex-coord into the larger bitmap. More...
 
float t2
 The t2 tex-coord into the larger bitmap. More...
 

Member Data Documentation

float cf::TrueTypeFontT::GlyphInfoT::AdvanceX

How much the cursor position should be advanced horizontally for rendering the next character.

float cf::TrueTypeFontT::GlyphInfoT::BearingX

The horizontal offset of the bitmap relative to the cursor position.

float cf::TrueTypeFontT::GlyphInfoT::BearingY

The vertical offset of the bitmap relative to the cursor position (y-axis points up!).

int cf::TrueTypeFontT::GlyphInfoT::Height

The height in pixels of the bitmap of this glyph.

MatSys::RenderMaterialT* cf::TrueTypeFontT::GlyphInfoT::RM

The RenderMaterialT that represents the larger bitmap that this glyph is embedded in. Points into the FontInfoT::RenderMaterials array of its FontInfoT.

float cf::TrueTypeFontT::GlyphInfoT::s1

The s1 tex-coord into the larger bitmap.

float cf::TrueTypeFontT::GlyphInfoT::s2

The s2 tex-coord into the larger bitmap.

float cf::TrueTypeFontT::GlyphInfoT::t1

The t1 tex-coord into the larger bitmap.

float cf::TrueTypeFontT::GlyphInfoT::t2

The t2 tex-coord into the larger bitmap.

int cf::TrueTypeFontT::GlyphInfoT::Width

The width in pixels of the bitmap of this glyph.


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