iso::font::Font Class Reference

#include <iso_font.h>

Inherited by iso::font::BitmapFont, and iso::font::VectorFont.

Inheritance diagram for iso::font::Font:

Inheritance graph
[legend]
List of all members.

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 LetterMetricsletterMetrics (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

Constructor & Destructor Documentation

Font::Font (  ) 

Font::Font ( const base::String &  pFontName,
const base::String &  pFontFile,
unsigned int  pFontHeight 
) throw (FontException)

Font::~Font (  ) 


Member Function Documentation

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]


Member Data Documentation

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]


The documentation for this class was generated from the following files:
Generated on Thu Jul 8 12:44:35 2010 for iso_font by  doxygen 1.5.1