22 #ifndef CRYOMNI3D_FONTS_CRYOFONT_H 23 #define CRYOMNI3D_FONTS_CRYOFONT_H 25 #include "common/array.h" 26 #include "common/hashmap.h" 27 #include "common/str.h" 28 #include "graphics/font.h" 31 class SeekableReadStream;
38 CryoFont() : _height(0), _maxAdvance(0) { }
45 virtual int getCharWidth(uint32 chr)
const;
49 virtual void drawChar(
Graphics::Surface *dst, uint32 chr,
int x,
int y, uint32 color)
const;
53 uint32 mapGlyph(uint32 chr)
const;
67 uint setup(uint16 width, uint16 height);
70 static const uint k8bitCharactersCount = 223;
76 Glyph _glyphs[k8bitCharactersCount];
Definition: cryofont.h:36
virtual int getFontHeight() const
Definition: cryofont.h:42
Definition: cryomni3d.h:62
Definition: algorithm.h:29
virtual int getMaxCharWidth() const
Definition: cryofont.h:43