ScummVM API documentation
Draci::Font Class Reference

#include <font.h>

Public Member Functions

 Font (const Common::Path &filename)
 
bool loadFont (const Common::Path &filename)
 
uint8 getFontHeight () const
 
uint8 getMaxCharWidth () const
 
uint8 getCharWidth (byte chr) const
 
void drawChar (Surface *dst, uint8 chr, int tx, int ty, int with_color) const
 
void drawString (Surface *dst, const byte *str, uint len, int x, int y, int with_color, int spacing, bool markDirty) const
 
void drawString (Surface *dst, const Common::String &str, int x, int y, int with_color, int spacing, bool markDirty) const
 
uint getStringWidth (const Common::String &str, int spacing) const
 
uint getStringHeight (const Common::String &str) const
 
uint getLineWidth (const Common::String &str, uint startIndex, int spacing) const
 

Detailed Description

Represents the game's fonts. See docs for setFont() for font format details.


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