#include <screen.h>
Public Member Functions | |
bool | load (Common::SeekableReadStream &file) override |
Type | getType () const override |
int | getHeight () const override |
int | getWidth () const override |
int | getCharWidth (uint16 c) const override |
void | setColorMap (const uint8 *src) override |
void | drawChar (uint16 c, byte *dst, int pitch, int) const override |
Public Member Functions inherited from Kyra::Font | |
virtual bool | usesOverlay () const |
virtual int | getCharHeight (uint16 c) const |
virtual void | set16bitColorMap (const uint16 *src) |
virtual void | setStyles (int styles) |
virtual void | drawChar (uint16 c, byte *dst, int pitch, int xOffs, int yOffs) const |
Additional Inherited Members | |
Public Types inherited from Kyra::Font | |
enum | Type { kASCII = 0, kJIS_X0201, kSJIS, kBIG5, kJohab } |
enum | FontStyle { kStyleNone = 0, kStyleLeftShadow = 1 << 0, kStyleBorder = 1 << 1, kStyleFat = 1 << 2, kStyleNarrow1 = 1 << 3, kStyleNarrow2 = 1 << 4, kStyleFullWidth = 1 << 5, kStyleForceOneByte = 1 << 6 } |
|
overridevirtual |
Tries to load a file from the given stream
Implements Kyra::Font.
|
inlineoverridevirtual |
Whether the font is Ascii or Sjis.
Implements Kyra::Font.
|
inlineoverridevirtual |
The font height.
Implements Kyra::Font.
|
inlineoverridevirtual |
The font width, this is the maximal character width.
Implements Kyra::Font.
|
overridevirtual |
Gets the width of a specific character.
Implements Kyra::Font.
|
inlineoverridevirtual |
Sets a text palette map. The map contains 16 entries.
Implements Kyra::Font.
|
overridevirtual |
Draws a specific character.
TODO/FIXME: Replace this with a nicer API. Currently the user has to assure that the character fits. We use this API, since it's hard to assure dirty rect handling from outside Screen.
Implements Kyra::Font.