#include <Font.h>
Collaboration diagram for Font:
Public Member Functions | |
Font () | |
~Font () | |
const glyph & | GetGlyph (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 |
FontPage * | def |
map< longchar, glyph * > | m_iCharToGlyph |
glyph * | m_iCharToGlyphCache [128] |
CString | Chars |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|