SkyGI::Font Class Reference

Collaboration diagram for SkyGI::Font:
[legend]
List of all members.

Public Member Functions

 Font (SystemFont nSystemFont)
 Font (const String &szFamily, const String &szStyle, const String &szFileName)
 ~Font ()
bool IsValid ()
void AddRef ()
bool Release ()
bool SetSize (int iSize)
int GetSize () const
bool IsSmoothed () const
int GetStringWidth (const String &cString, int iMaxBytes=-1)
int GetStringHeight (const String &cString)
int GetHeight ()
Rect GetStringBounds (const String &cString)
Rect GetMultilineStringBounds (const String &cString)
int FitChars (const String &cString, int iLength)
sGlyphGetGlyph (unsigned int uiIndex)
FontPhysicalGetPhysicalFont () const
int GetAscend ()
int GetDescend ()
int GetLineGap ()
int GetAdvance ()
int GetStyleCount ()
bool EnumStyles (int iIndex, String &pStyleName)
String GetFamilyName ()
String GetStyleName ()
void DebugRef ()
int GetRef ()
void * GetFace ()

Static Public Member Functions

static int GetFamilyCount ()
static int GetFontFilesCount ()
static int GetStyleCount (const String &szFamily)
static bool EnumFamilies (int iIndex, String &pFamilyName)
static int ReloadAllFonts (bool bRegisterGlobally=true)
static int CountCreateFonts ()

Classes

class  Private

Detailed Description

Examples:

textview.cpp.


Constructor & Destructor Documentation

Font::Font ( SystemFont  nSystemFont  ) 

Font constructor

Description:
Tries to create the specified font.
Exceptions:
Will throw std::runtime_error when specified font couldn't be created

Font::Font ( const String szFamily,
const String szStyle,
const String szFileName 
)

Font constructor

Description:
Tries to create the specified font.
Exceptions:
Will throw std::runtime_error when specified font couldn't be created

Font::~Font (  ) 


Member Function Documentation

bool Font::IsValid (  ) 

void Font::AddRef (  ) 

bool Font::Release (  ) 

bool Font::SetSize ( int  iSize  ) 

int Font::GetSize (  )  const

bool Font::IsSmoothed (  )  const

int Font::GetStringWidth ( const String cString,
int  iMaxBytes = -1 
)

int Font::GetStringHeight ( const String cString  ) 

int Font::GetHeight (  ) 

Rect Font::GetStringBounds ( const String cString  ) 

Rect Font::GetMultilineStringBounds ( const String cString  ) 

int Font::FitChars ( const String cString,
int  iLength 
)

sGlyph * Font::GetGlyph ( unsigned int  uiIndex  ) 

FontPhysical * Font::GetPhysicalFont (  )  const

int Font::GetAscend (  ) 

int Font::GetDescend (  ) 

int Font::GetLineGap (  ) 

int Font::GetAdvance (  ) 

int Font::GetFamilyCount (  )  [static]

int Font::GetFontFilesCount (  )  [static]

int Font::GetStyleCount (  ) 

int Font::GetStyleCount ( const String szFamily  )  [static]

bool Font::EnumFamilies ( int  iIndex,
String pFamilyName 
) [static]

bool Font::EnumStyles ( int  iIndex,
String pStyleName 
)

int Font::ReloadAllFonts ( bool  bRegisterGlobally = true  )  [static]

String Font::GetFamilyName (  ) 

String Font::GetStyleName (  ) 

int Font::CountCreateFonts (  )  [static]

void Font::DebugRef (  ) 

int Font::GetRef (  ) 

void * Font::GetFace (  ) 


Generated on Thu Dec 13 18:14:24 2007 for SkyGI by  doxygen 1.5.1-p1