|
void | setFont (int fontNum) |
|
int | stringWidth (const Common::String &str) |
|
int | stringHeight (const Common::String &str) |
|
int | charWidth (const char *str, int &idx) |
|
int | charWidth (char ch) |
|
int | charHeight (unsigned char c) |
|
int | fontHeight () const |
|
int | widestChar () const |
|
int | fontNumber () const |
|
Common::Array< Common::String > | wordWrap (const Common::String &str, uint maxWidth, Common::String &rem, uint maxChars=Common::String::npos, uint maxLines=Common::String::npos, bool skipHeadAt=false) |
|
Common::Array< Common::String > | wordWrap (const Common::String &str, uint maxWidth, uint maxChars=Common::String::npos, uint maxLines=Common::String::npos, bool skipHeadAt=false) |
|
|
static const int | kChineseWidth = 16 |
|
static const int | kChineseHeight = 16 |
|
◆ setVm()
Initialise the font manager
◆ freeFont()
static void Sherlock::Fonts::freeFont |
( |
| ) |
|
|
static |
◆ setFont()
void Sherlock::Fonts::setFont |
( |
int |
fontNum | ) |
|
Set the font to use for writing text on the screen
◆ stringWidth()
Returns the width of a string in pixels
◆ stringHeight()
Returns the height of a string in pixels (i.e. the tallest displayed character)
◆ charWidth() [1/2]
int Sherlock::Fonts::charWidth |
( |
const char * |
str, |
|
|
int & |
idx |
|
) |
| |
Returns the width of a character in pixels
◆ charWidth() [2/2]
int Sherlock::Fonts::charWidth |
( |
char |
ch | ) |
|
Returns the width of a character in pixels
◆ charHeight()
int Sherlock::Fonts::charHeight |
( |
unsigned char |
c | ) |
|
Returns the width of a character in pixels
◆ fontHeight()
int Sherlock::Fonts::fontHeight |
( |
| ) |
const |
|
inline |
◆ widestChar()
int Sherlock::Fonts::widestChar |
( |
| ) |
const |
|
inline |
Return the width of the widest character in the font
◆ fontNumber()
int Sherlock::Fonts::fontNumber |
( |
| ) |
const |
|
inline |
Return the currently active font number
The documentation for this class was generated from the following file: