21 #ifndef GRAPHICS_FONTS_BGIFONT_H 22 #define GRAPHICS_FONTS_BGIFONT_H 24 #include "common/file.h" 25 #include "common/array.h" 26 #include "graphics/font.h" 27 #include "graphics/surface.h" 31 const int OPCODE_END = 0;
32 const int OPCODE_DOSCAN = 1;
33 const int OPCODE_MOVE = 2;
34 const int OPCODE_DRAW = 3;
49 void drawChar(
Surface *dst, uint32 chr,
int x,
int y, uint32 color)
const;
52 struct DrawingInstruction {
82 uint16 _maxWidth = 10;
83 uint32 _totalWidth = 0;
84 int16 _totalHeight = 0;
85 int8 _originToAscender = 0;
86 int8 _originToDescender = 0;
89 uint16 characterToIndex(uint32 character)
const;
90 byte fixSign(byte original);
91 CachedFont *drawCachedFont(
int size);
int getCharWidth(uint32 chr) const
int getFontHeight() const
Definition: bgifont.h:46
int getMaxCharWidth() const
Definition: bgifont.h:48
void drawChar(Surface *dst, uint32 chr, int x, int y, uint32 color) const
Definition: formatinfo.h:28