ScummVM API documentation
Ultima::Ultima8::FontManager Class Reference

Public Member Functions

FontgetGameFont (unsigned int fontnum, bool allowOverride=false)
 
FontgetTTFont (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 ()
 

Static Public Member Functions

static FontManagerget_instance ()
 

Member Function Documentation

◆ getGameFont()

Font* Ultima::Ultima8::FontManager::getGameFont ( unsigned int  fontnum,
bool  allowOverride = false 
)

get a Font by fontnum (for game fonts)

Parameters
fontnumthe number of the font
allowOverrideif 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
fontnumthe font to override
filenamethe filename of the TTF
pointsizethe pointsize to use
rgbthe color to use for the font
bordersizethe size of the black border to add
SJIStrue 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
fontnumthe font to override
jpfontthe fontnum of the Japanese font to use
rgbthe color to use

The documentation for this class was generated from the following file: