#include <iso_font.h>
Inherited by iso::font::BitmapFont, and iso::font::VectorFont.
Inheritance diagram for iso::font::Font:
Public Member Functions | |
Font () | |
Font (const base::String &pFontName, const base::String &pFontFile, unsigned int pFontHeight) throw (FontException) | |
~Font () | |
const base::String & | fontName () const |
FT_Glyph | glyph (const QChar &pChar) throw (FontException) |
const LetterMetrics & | letterMetrics (const QChar &pChar) throw (FontException) |
math::Vector2< int > | letterKerning (const QChar &pLeftLetter, const QChar &pRightLetter) throw (FontException) |
math::Vector2< int > | textSize (const base::String &pText, const math::Vector2< float > &pSpacing, bool pKerning) throw (FontException) |
void | nextLetterPosition (math::Vector2< int > &pCursorPos, math::Vector2< int > &pLetterPos, unsigned int &pLetterIndex, const base::String &pText, const math::Vector2< float > &pSpacing, bool pKerning) throw (FontException) |
Protected Member Functions | |
void | init (const base::String &pFontName, const base::String &pFontFile, unsigned int pFontHeight) throw (FontException) |
void | storeLetterMetrics (const QChar &pLetter) throw (FontException) |
Protected Attributes | |
base::String | mFontName |
int | mFontHeight |
FT_Face | mFontFace |
QHash< QChar, LetterMetrics * > | mLetterMetrics |
Font::Font | ( | ) |
Font::Font | ( | const base::String & | pFontName, | |
const base::String & | pFontFile, | |||
unsigned int | pFontHeight | |||
) | throw (FontException) |
Font::~Font | ( | ) |
const base::String & Font::fontName | ( | ) | const |
FT_Glyph Font::glyph | ( | const QChar & | pChar | ) | throw (FontException) |
const LetterMetrics & Font::letterMetrics | ( | const QChar & | pChar | ) | throw (FontException) |
math::Vector2< int > Font::letterKerning | ( | const QChar & | pLeftLetter, | |
const QChar & | pRightLetter | |||
) | throw (FontException) |
math::Vector2< int > Font::textSize | ( | const base::String & | pText, | |
const math::Vector2< float > & | pSpacing, | |||
bool | pKerning | |||
) | throw (FontException) |
void Font::nextLetterPosition | ( | math::Vector2< int > & | pCursorPos, | |
math::Vector2< int > & | pLetterPos, | |||
unsigned int & | pLetterIndex, | |||
const base::String & | pText, | |||
const math::Vector2< float > & | pSpacing, | |||
bool | pKerning | |||
) | throw (FontException) |
void Font::init | ( | const base::String & | pFontName, | |
const base::String & | pFontFile, | |||
unsigned int | pFontHeight | |||
) | throw (FontException) [protected] |
void Font::storeLetterMetrics | ( | const QChar & | pLetter | ) | throw (FontException) [protected] |
base::String iso::font::Font::mFontName [protected] |
int iso::font::Font::mFontHeight [protected] |
FT_Face iso::font::Font::mFontFace [protected] |
QHash< QChar, LetterMetrics* > iso::font::Font::mLetterMetrics [protected] |