ScummVM API documentation
MADS::Font Class Reference

Public Member Functions

 Font (const Common::Path &filename)
 
void setColors (uint8 v1, uint8 v2, uint8 v3, uint8 v4)
 
void setColorMode (SelectionMode mode)
 
int maxWidth () const
 
int getWidth (const Common::String &msg, int spaceWidth=-1)
 
int getHeight () const
 
int writeString (BaseSurface *surface, const Common::String &msg, const Common::Point &pt, int spaceWidth=0, int width=0)
 

Static Public Member Functions

static void init (MADSEngine *vm)
 
static void deinit ()
 
static FontgetFont (const Common::String &fontName)
 

Member Function Documentation

◆ init()

static void MADS::Font::init ( MADSEngine vm)
static

Initialize the font system

◆ deinit()

static void MADS::Font::deinit ( )
static

Free up the resources used by the font

◆ getFont()

static Font* MADS::Font::getFont ( const Common::String fontName)
static

Returns a new Font instance using the specified font name


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