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"
31const int OPCODE_END = 0;
32const int OPCODE_DOSCAN = 1;
33const int OPCODE_MOVE = 2;
34const int OPCODE_DRAW = 3;
49 void drawChar(
Surface *dst, uint32 chr,
int x,
int y, uint32 color)
const override;
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 getFontHeight() const override
Definition: bgifont.h:46
int getMaxCharWidth() const override
Definition: bgifont.h:48
void drawChar(Surface *dst, uint32 chr, int x, int y, uint32 color) const override
int getCharWidth(uint32 chr) const override
Definition: formatinfo.h:28