22 #ifndef GROOVIE_FONT_H 23 #define GROOVIE_FONT_H 25 #include "common/stream.h" 26 #include "graphics/font.h" 39 int getCharWidth(uint32 chr)
const override {
return getGlyph(chr)->width; }
43 int _maxHeight, _maxWidth;
46 Glyph() : pixels(0), width(0), height(0), julia(0) {}
47 ~Glyph() {
delete[] pixels; }
55 byte _mapChar2Glyph[128];
57 const Glyph *getGlyph(uint32 chr)
const;
62 #endif // GROOVIE_FONT_H int getCharWidth(uint32 chr) const override
Definition: font.h:39
int getMaxCharWidth() const override
Definition: font.h:38
int getFontHeight() const override
Definition: font.h:37
void drawChar(Graphics::Surface *dst, uint32 chr, int x, int y, uint32 color) const override