ScummVM API documentation
Grim::BitmapFont Class Reference
Inheritance diagram for Grim::BitmapFont:
Grim::Font Grim::PoolObject< BitmapFont > Grim::PoolObjectBase

Public Member Functions

int getPoolId () const override
 
int32 getPoolTag () const override
 
void load (const Common::String &filename, Common::SeekableReadStream *data)
 
void loadTGA (const Common::String &filename, Common::SeekableReadStream *index, Common::SeekableReadStream *image)
 
const Common::StringgetFilename () const
 
int32 getKernedHeight () const override
 
int32 getFontWidth () const override
 
int32 getBaseOffsetY () const override
 
void render (Graphics::Surface &buf, const Common::String &currentLine, const Graphics::PixelFormat &pixelFormat, uint32 blackColor, uint32 color, uint32 colorKey) const override
 
int32 getCharBitmapWidth (uint32 c) const
 
int32 getCharBitmapPitch (uint32 c) const
 
int32 getCharBitmapHeight (uint32 c) const
 
int32 getCharKernedWidth (uint32 c) const override
 
int32 getCharStartingCol (uint32 c) const
 
int32 getCharStartingLine (uint32 c) const
 
int32 getCharOffset (uint32 c) const
 
const byte * getCharData (uint32 c) const
 
const byte * getFontData () const
 
uint32 getDataSize () const
 
bool is8Bit () const override
 
int getKernedStringLength (const Common::String &text) const override
 
int getBitmapStringLength (const Common::String &text) const
 
int getStringHeight (const Common::String &text) const
 
const void * getUserData () const
 
void setUserData (void *data)
 
void saveState (SaveGame *state) const
 
void restoreState (SaveGame *state)
 
- Public Member Functions inherited from Grim::Font
const Common::StringgetFilename () const
 
int32 getWCharKernedWidth (byte hi, byte lo) const
 
bool isKoreanChar (const byte hi, const byte lo) const
 
- Public Member Functions inherited from Grim::PoolObject< BitmapFont >
void setId (int id)
 
int getId () const override
 
int32 getTag () const override
 

Static Public Member Functions

static int32 getStaticTag ()
 
- Static Public Member Functions inherited from Grim::Font
static FontgetByFileName (const Common::String &fileName)
 
static FontgetFirstFont ()
 
static void save (const Font *font, SaveGame *state)
 
static Fontload (SaveGame *state)
 
- Static Public Member Functions inherited from Grim::PoolObject< BitmapFont >
static PoolgetPool ()
 

Static Public Attributes

static const uint8 emerFont [][13]
 

Additional Inherited Members

- Static Protected Member Functions inherited from Grim::PoolObject< BitmapFont >
static void saveStaticState (SaveGame *state)
 
static void restoreStaticState (SaveGame *state)
 
- Protected Attributes inherited from Grim::Font
Common::String _filename
 

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