21 #ifndef FREESCAPE_FONT_H 22 #define FREESCAPE_FONT_H 24 #include "common/array.h" 25 #include "common/stream.h" 27 #include "graphics/font.h" 28 #include "graphics/managed_surface.h" 38 void setBackground(uint32 color);
39 void setSecondaryColor(uint32 color);
43 int getKerningOffset(uint32 left, uint32 right)
const override {
return _kerningOffset; }
44 void setKernelingOffset(
int offset) { _kerningOffset = offset; }
45 void setCharWidth(
int width) { _charWidth = width; }
52 uint32 _backgroundColor;
53 uint32 _secondaryColor;
60 #endif // FREESCAPE_FONT_H int getKerningOffset(uint32 left, uint32 right) const override
Definition: font.h:43
int getFontHeight() const override
void drawChar(Graphics::Surface *dst, uint32 chr, int x, int y, uint32 color) const override
int getCharWidth(uint32 chr) const override
int getMaxCharWidth() const override