ScummVM API documentation
ZVision::StyledTTFont Class Reference

Public Types

enum  {
  TTF_STYLE_BOLD = 0x01, TTF_STYLE_ITALIC = 0x02, TTF_STYLE_UNDERLINE = 0x04, TTF_STYLE_STRIKETHROUGH = 0x08,
  TTF_STYLE_SHARP = 0x10
}
 

Public Member Functions

 StyledTTFont (ZVision *engine)
 
bool loadFont (const Common::String &fontName, int32 point, uint style)
 
int getFontHeight ()
 
int getMaxCharWidth ()
 
int getCharWidth (byte chr)
 
int getKerningOffset (byte left, byte right)
 
void drawChar (Graphics::Surface *dst, byte chr, int x, int y, uint32 color)
 
void drawString (Graphics::Surface *dst, const Common::String &str, int x, int y, int w, uint32 color, Graphics::TextAlign align=Graphics::kTextAlignLeft)
 
int getStringWidth (const Common::String &str)
 
Graphics::SurfacerenderSolidText (const Common::String &str, uint32 color)
 
bool isLoaded ()
 

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