This class represents a collection of Glyphs in a common visual style. More...
#include <font.h>
Public Types | |
typedef GlyphContainer::const_iterator | ConstGlyphIterator |
Const Iterator type for Glyphs stored by this class. | |
typedef std::map< UInt32, Glyph * > | GlyphContainer |
Container type for Glyph storage in this class. | |
typedef GlyphContainer::iterator | GlyphIterator |
Iterator type for Glyphs stored by this class. | |
Public Member Functions | |||
FontData (TextureAtlas *ParentAtlas) | |||
Class constructor. More... | |||
~FontData () | |||
Class destructor. | |||
void | _AddGlyph (Glyph *NewGlyph) | ||
Adds a new glyph to this Font.
| |||
void | _GenerateWhitespaceGlyphs () | ||
Generates Whitespace Glyphs from this font's data for this font. | |||
void | _SetBaseLine (const Real BL) | ||
Sets the height of the largest glyph in this font. More... | |||
void | _SetLetterSpacing (const Real LS) | ||
Sets the LetterSpacing of this font. More... | |||
void | _SetLineHeight (const Real LH) | ||
Sets the height of a single line of text in this font. More... | |||
void | _SetName (const String &Name) | ||
Sets the name of this font. More... | |||
void | _SetSpaceLength (const Real SL) | ||
Sets the length of a space for this font. More... | |||
TextureAtlas * | GetAtlas () const | ||
Gets the TextureAtlas this font belongs to. More... | |||
const String & | GetAtlasName () const | ||
Gets the name of the TextureAtlas this font belongs to. More... | |||
Real | GetBaseLine () const | ||
Gets the height of the largest glyph in this font. More... | |||
Glyph * | GetGlyph (const UInt32 &GlyphID) const | ||
Gets the glyph corresponding to the provided characters UTF-8 code. More... | |||
Real | GetLetterSpacing () const | ||
Gets the spacing to apply between letters in this font. More... | |||
Real | GetLineHeight () const | ||
Gets the height of a line of text in this font. More... | |||
const String & | GetName () const | ||
Gets the name of this font. More... | |||
Real | GetSpaceLength () const | ||
Gets the length of a space in this font. More... | |||
Protected Member Functions | |
void | SetWhitespaceAtlasCoords (Glyph *Whitespace) |
Sets the dummy coordinates for a generated whitespace glyph. | |
Protected Attributes | |
TextureAtlas * | Atlas |
The Atlas that this GlyphData belongs to. More... | |
Real | BaseLine |
The height of the largest glyph in this font. More... | |
String | FontName |
The name of this font. More... | |
GlyphContainer | Glyphs |
Container storing all the Glyphs contained in this font. More... | |
Real | LetterSpacing |
I don't know. More... | |
Real | LineHeight |
The height of a line of text in this font. More... | |
Real | SpaceLength |
The width in pixels of a space in this font. More... | |
This class represents a collection of Glyphs in a common visual style.
Mezzanine::UI::FontData::FontData | ( | TextureAtlas * | ParentAtlas | ) |
Class constructor.
ParentAtlas | The TextureAtlas this font data belongs to. |
void Mezzanine::UI::FontData::_AddGlyph | ( | Glyph * | NewGlyph | ) |
void Mezzanine::UI::FontData::_SetBaseLine | ( | const Real | BL | ) |
void Mezzanine::UI::FontData::_SetLetterSpacing | ( | const Real | LS | ) |
void Mezzanine::UI::FontData::_SetLineHeight | ( | const Real | LH | ) |
void Mezzanine::UI::FontData::_SetName | ( | const String & | Name | ) |
void Mezzanine::UI::FontData::_SetSpaceLength | ( | const Real | SL | ) |
TextureAtlas * Mezzanine::UI::FontData::GetAtlas | ( | ) | const |
Gets the TextureAtlas this font belongs to.
const String & Mezzanine::UI::FontData::GetAtlasName | ( | ) | const |
Gets the name of the TextureAtlas this font belongs to.
Real Mezzanine::UI::FontData::GetBaseLine | ( | ) | const |
Real Mezzanine::UI::FontData::GetLetterSpacing | ( | ) | const |
Real Mezzanine::UI::FontData::GetLineHeight | ( | ) | const |
const String & Mezzanine::UI::FontData::GetName | ( | ) | const |
Real Mezzanine::UI::FontData::GetSpaceLength | ( | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |