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"
31class SeekableReadStream;
38 int8 xOffset, yOffset;
42 const char *familyName;
55 const byte *
const *bitmaps;
70 void drawChar(
Surface *dst, uint32 chr,
int x,
int y, uint32 color)
const override;
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()
int getMaxCharWidth() const override
void drawChar(Surface *dst, uint32 chr, int x, int y, uint32 color) const override
int getFontHeight() const override
int getFontAscent() const override
int getCharWidth(uint32 chr) const override
Definition: algorithm.h:29
Definition: formatinfo.h:28