|
Font * | getGameFont (unsigned int fontnum, bool allowOverride=false) |
|
Font * | getTTFont (unsigned int ttfnum) |
| get a TTF font (for non-game fonts)
|
|
bool | addTTFOverride (unsigned int fontnum, const Common::Path &filename, int pointsize, uint32 rgb, int bordersize, bool SJIS=false) |
|
bool | addJPOverride (unsigned int fontnum, unsigned int jpfont, uint32 rgb) |
|
bool | loadTTFont (unsigned int ttfnum, const Common::Path &filename, int pointsize, uint32 rgb, int bordersize) |
| load a TTF (for non-game fonts)
|
|
void | resetGameFonts () |
|
◆ getGameFont()
Font* Ultima::Ultima8::FontManager::getGameFont |
( |
unsigned int |
fontnum, |
|
|
bool |
allowOverride = false |
|
) |
| |
get a Font by fontnum (for game fonts)
- Parameters
-
fontnum | the number of the font |
allowOverride | if true, allow an override font to be used |
◆ addTTFOverride()
bool Ultima::Ultima8::FontManager::addTTFOverride |
( |
unsigned int |
fontnum, |
|
|
const Common::Path & |
filename, |
|
|
int |
pointsize, |
|
|
uint32 |
rgb, |
|
|
int |
bordersize, |
|
|
bool |
SJIS = false |
|
) |
| |
override a game font with a TTF.
- Parameters
-
fontnum | the font to override |
filename | the filename of the TTF |
pointsize | the pointsize to use |
rgb | the color to use for the font |
bordersize | the size of the black border to add |
SJIS | true for a Japanese game font |
◆ addJPOverride()
bool Ultima::Ultima8::FontManager::addJPOverride |
( |
unsigned int |
fontnum, |
|
|
unsigned int |
jpfont, |
|
|
uint32 |
rgb |
|
) |
| |
override a game font with a Japanese font.
- Parameters
-
fontnum | the font to override |
jpfont | the fontnum of the Japanese font to use |
rgb | the color to use |
The documentation for this class was generated from the following file: