22 #ifndef CRYOMNI3D_FONTS_CRYOEXTFONT_H 23 #define CRYOMNI3D_FONTS_CRYOEXTFONT_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 CryoExtFont() : _height(0), _maxAdvance(0), _crf(
nullptr), _codepage(Common::kCodePageInvalid) { }
41 void load(
const Common::Path &fontFile, Common::CodePage encoding);
46 virtual int getCharWidth(uint32 chr)
const;
50 virtual void drawChar(
Graphics::Surface *dst, uint32 chr,
int x,
int y, uint32 color)
const;
54 void assureCached(uint32 chr)
const;
55 uint32 mapGlyph(uint32 chr)
const;
69 uint setup(uint16 width, uint16 height);
76 Common::CodePage _codepage;
82 mutable GlyphCache _cache;
Definition: cryomni3d.h:62
virtual int getMaxCharWidth() const
Definition: cryoextfont.h:44
Definition: cryoextfont.h:36
Definition: algorithm.h:29
virtual int getFontHeight() const
Definition: cryoextfont.h:43