ScummVM API documentation
WaynesWorld::GFTFont Class Reference

Public Member Functions

void loadFromFile (const char *filename)
 
void drawText (Graphics::Surface *surface, const char *text, int x, int y, byte color)
 
void drawWrappedText (Graphics::Surface *surface, const char *text, int x, int y, int maxWidth, byte color)
 
int drawChar (Graphics::Surface *surface, byte ch, int x, int y, byte color)
 
int getTextWidth (const char *text) const
 
int getCharWidth (byte ch) const
 

Protected Attributes

byte _firstChar = 0
 
byte _lastChar = 0
 
uint16 * _charTable = nullptr
 
byte * _fontData = nullptr
 
int16 _formWidth = 0
 
int16 _formHeight = 0
 

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