ScummVM API documentation
Toon::FontRenderer Class Reference

Public Member Functions

 FontRenderer (ToonEngine *vm)
 
void setFont (Animation *font)
 
bool loadDemoFont (const Common::Path &filename)
 
void computeSize (const Common::String &origText, int16 *retX, int16 *retY)
 
void renderText (int16 x, int16 y, const Common::String &origText, int32 mode)
 
void renderMultiLineText (int16 x, int16 y, const Common::String &origText, int32 mode, Graphics::Surface &frame)
 
void setFontColorByCharacter (int32 characterId)
 
void setFontColor (int32 fontColor1, int32 fontColor2, int32 fontColor3)
 

Protected Member Functions

byte textToFont (byte c)
 

Protected Attributes

Animation_currentFont
 
DemoFont_currentDemoFont
 
ToonEngine_vm
 
byte _currentFontColor [4]
 

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