#include <font.h>
Inheritance diagram for Font:


Public Types | |
| enum | FONTALIGN |
| Font alignment. | |
| enum | FONTLINEWRAP |
| Line wrapping modes. | |
Public Member Functions | |
| virtual | ~Font () |
| int | Printf (int iX, int iY, const char *pszFormat,...) |
| int | Printf (float fX, float fY, const char *pszFormat,...) |
| void | SetClipBox (int iX, int iY, int iWidth, int iHeight) |
| void | GetClipBox (int *piX, int *piY, int *piWidth, int *piHeight) |
| void | ResetClipBox () |
| FONTLINEWRAP | SetLineWrap (FONTLINEWRAP eWrap) |
| FONTLINEWRAP | GetLineWrap () const |
| int | GetLineHeight () const |
| int | GetStringLength (const std::string &rstrString) |
| int | GetStringHeight (const std::string &rstrString, int iX) |
| const std::string & | GetName () const |
| const Color & | GetColor () const |
| Color | SetColor (const Color &rkColor) |
| void | SetWordSeparators (const std::string &rstrSeparators) |
| FONTALIGN | SetHorizontalAlign (FONTALIGN eAlign) |
| FONTALIGN | GetHorizontalAlign () |
| std::string | ClipLine (const std::string &rstrLine, int iX, int iY, int *piLines=0) |
| void | IncRef () |
| void | DecRef () |
| int | GetRefCount () const |
| void | SetFileManager (FileManager *pkManager) |
| bool | Load (const std::string &rstrFilename, unsigned int uiFlags=0, bool bForceReload=false, bool bSearchFileSystem=false) |
| bool | Load (File *pkFile, unsigned int uiFlags=0, bool bForceReload=false) |
Static Public Attributes | |
| NE_STATIC float | s_fSubPixelOffset |
Protected Member Functions | |
| bool | LoadNode (unsigned int uiFlags) |
| Font (FontManager *pkFontManager) | |
Protected Attributes | |
| MaterialPtr | m_pkMaterial |
| FontCharacter | m_akCharacters [256] |
| int | m_iSpacing |
| int | m_iLineHeight |
| int | m_iSpaceWidth |
| int | m_iClipX |
| int | m_iClipY |
| int | m_iClipWidth |
| int | m_iClipHeight |
| FONTLINEWRAP | m_eLineWrap |
| std::string | m_strName |
| FontManager * | m_pkFontManager |
| std::string | m_strWordSeparators |
| FONTALIGN | m_eHorizontalAlign |
| Color | m_kColor |
| File * | m_pkFile |
| bool | m_bLoaded |
| bool | m_bKeepFile |
| FileManager * | m_pkFileManager |
|
|
Fonts are created by the font manager
|
|
|
|
|
|
Main loader method. Called by LoadableEntity to load object if file was opened successfully
Implements LoadableEntity. |
|
||||||||||||||||||||
|
Printf to screen
|
|
||||||||||||||||||||
|
Printf to screen
|
|
||||||||||||||||||||
|
Set clip box. Will not blit any pixels outside this box, and will (optionally) line wrap
|
|
||||||||||||||||||||
|
Get clip box
|
|
|
Reset clip box |
|
|
Set line wrap flag
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
Set word separator characters
|
|
|
Set alignment
|
|
|
|
|
||||||||||||||||||||
|
Clip line to clipbox, applying line wrap modes and current print direction
|
|
|
Increase reference count |
|
|
Decrease reference count and garbage collect if 0 |
|
|
|
|
|
Set new file manager object
|
|
||||||||||||||||||||
|
Load resource
|
|
||||||||||||||||
|
Load resource
|
|
|
|
Characters |
|
|
Space between characters |
|
|
Line height |
|
|
Width of space character |
|
|
Clip box x coord |
|
|
Clip box y coord |
|
|
Clip box width |
|
|
Clip box height |
|
|
Line wrap flag |
|
|
Font name |
|
|
Font manager |
|
|
Word separators |
|
|
Font horizontal alignment |
|
|
Current color |
|
|
Subpixel texture alignment set by render device |
|
|
|
Flag indicating node is loaded |
|
|
Flag to block file deletion on load completion |
|
|
File manager |
1.3.5