Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

Font Class Reference

#include <Font.h>

Collaboration diagram for Font:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Font ()
 ~Font ()
const glyphGetGlyph (wchar_t c) const
int GetLineWidthInSourcePixels (const wstring &szLine) const
int GetLineHeightInSourcePixels (const wstring &szLine) const
bool FontCompleteForString (const wstring &str) const
void AddPage (FontPage *fp)
void MergeFont (Font &f)
void Load (const CString &sFontOrTextureFilePath, CString sChars)
void Unload ()
void Reload ()
void CapsOnly ()
int GetHeight () const
int GetCenter () const
int GetLineSpacing () const
void SetDefaultGlyph (FontPage *fp)

Static Public Member Functions

CString GetFontName (CString FileName)
void WeedFontNames (vector< CString > &v, const CString &FileName)

Public Attributes

int m_iRefCount
CString path

Static Public Attributes

const wchar_t DEFAULT_GLYPH = 0xF8FF

Private Member Functions

void LoadFontPageSettings (FontPageSettings &cfg, IniFile &ini, const CString &TexturePath, const CString &PageName, CString sChars)
CString GetPageNameFromFileName (const CString &fn)

Static Private Member Functions

void GetFontPaths (const CString &sFontOrTextureFilePath, CStringArray &TexturePaths, CString &IniPath)

Private Attributes

vector< FontPage * > pages
FontPagedef
map< longchar, glyph * > m_iCharToGlyph
glyphm_iCharToGlyphCache [128]
CString Chars

Constructor & Destructor Documentation

Font::Font  ) 
 

Font::~Font  ) 
 


Member Function Documentation

void Font::AddPage FontPage fp  ) 
 

void Font::CapsOnly  ) 
 

bool Font::FontCompleteForString const wstring &  str  )  const
 

int Font::GetCenter  )  const [inline]
 

CString Font::GetFontName CString  FileName  )  [static]
 

void Font::GetFontPaths const CString &  sFontOrTextureFilePath,
CStringArray &  TexturePaths,
CString &  IniPath
[static, private]
 

const glyph & Font::GetGlyph wchar_t  c  )  const
 

int Font::GetHeight  )  const [inline]
 

int Font::GetLineHeightInSourcePixels const wstring &  szLine  )  const
 

int Font::GetLineSpacing  )  const [inline]
 

int Font::GetLineWidthInSourcePixels const wstring &  szLine  )  const
 

CString Font::GetPageNameFromFileName const CString &  fn  )  [private]
 

void Font::Load const CString &  sFontOrTextureFilePath,
CString  sChars
 

void Font::LoadFontPageSettings FontPageSettings cfg,
IniFile ini,
const CString &  TexturePath,
const CString &  PageName,
CString  sChars
[private]
 

void Font::MergeFont Font f  ) 
 

void Font::Reload  ) 
 

void Font::SetDefaultGlyph FontPage fp  ) 
 

void Font::Unload  ) 
 

void Font::WeedFontNames vector< CString > &  v,
const CString &  FileName
[static]
 


Member Data Documentation

CString Font::Chars [private]
 

FontPage* Font::def [private]
 

const wchar_t Font::DEFAULT_GLYPH = 0xF8FF [static]
 

map<longchar,glyph*> Font::m_iCharToGlyph [private]
 

glyph* Font::m_iCharToGlyphCache[128] [private]
 

int Font::m_iRefCount
 

vector<FontPage *> Font::pages [private]
 

CString Font::path
 


The documentation for this class was generated from the following files:
Generated on Thu Jan 27 20:59:11 2005 for StepMania by doxygen 1.3.7