22 #ifndef GRAPHICS_FONTS_AMIGAFONT_H 23 #define GRAPHICS_FONTS_AMIGAFONT_H 25 #include "graphics/font.h" 28 class SeekableReadStream;
35 #include "common/pack-start.h" 41 struct AmigaDiskFont {
57 #include "common/pack-end.h" 77 void initFromData(
const byte *data, uint32 dataSize, uint32 fontOffset);
78 bool isProportional()
const;
79 int16 getCharSpace(byte c)
const;
80 int16 getCharKern(byte c)
const;
81 uint16 getPixels(byte c)
const;
82 uint16 getOffset(byte c)
const;
84 uint32 mapChar(uint32 c)
const;
97 virtual int getFontHeight()
const;
98 virtual int getCharWidth(uint32 chr)
const;
99 virtual int getMaxCharWidth()
const;
100 virtual int getKerningOffset(uint32 left, uint32 right)
const;
101 int getCharAdvanceWidth(uint32 chr)
const;
102 int getCharDrawOffset(uint32 chr)
const;
103 int getCharInkWidth(uint32 chr)
const;
104 int getCharRenderWidth(uint32 chr)
const;
105 void drawCharDoubleHeight(
Surface *dst, uint32 chr,
int x,
int y, uint32 color)
const;
106 virtual void drawChar(
Surface *dst, uint32 chr,
int x,
int y, uint32 color)
const;
108 int getLoChar()
const {
return _font->_loChar; }
109 int getHiChar()
const {
return _font->_hiChar; }
Definition: algorithm.h:29
Definition: formatinfo.h:28
Definition: amigafont.h:33