22#ifndef GRAPHICS_FONTS_AMIGAFONT_H
23#define GRAPHICS_FONTS_AMIGAFONT_H
25#include "graphics/font.h"
28class 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;
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;
108 int getLoChar()
const {
return _font->_loChar; }
109 int getHiChar()
const {
return _font->_hiChar; }
Definition: amigafont.h:33
void drawChar(Surface *dst, uint32 chr, int x, int y, uint32 color) const override
int getMaxCharWidth() const override
AmigaFont(Common::SeekableReadStream *stream=NULL)
int getFontHeight() const override
int getKerningOffset(uint32 left, uint32 right) const override
int getCharWidth(uint32 chr) const override
Definition: algorithm.h:29
Definition: formatinfo.h:28