22 #ifndef GRAPHICS_FONTS_BDF_H 23 #define GRAPHICS_FONTS_BDF_H 25 #include "common/system.h" 26 #include "common/types.h" 28 #include "graphics/font.h" 31 class SeekableReadStream;
38 int8 xOffset, yOffset;
42 const char *familyName;
55 const byte *
const *bitmaps;
65 virtual int getFontHeight()
const;
66 virtual int getFontAscent()
const;
67 virtual int getMaxCharWidth()
const;
69 virtual int getCharWidth(uint32 chr)
const;
70 virtual void drawChar(
Surface *dst, uint32 chr,
int x,
int y, uint32 color)
const;
72 const char *getFamilyName()
const;
73 const char *getFontSlant()
const;
74 int getFontSize()
const;
81 int mapToIndex(uint32 ch)
const;
84 const DisposeAfterUse::Flag _dispose;
87 #define DEFINE_FONT(n) \ 88 const BdfFont *n = 0; \ 90 n = new BdfFont(desc, DisposeAfterUse::NO); \ 93 #define FORWARD_DECLARE_FONT(n) \ 94 extern const BdfFont *n; \ 95 extern void create_##n() 97 #define INIT_FONT(n) \
Definition: algorithm.h:29
Definition: formatinfo.h:28