#include <screen.h>
Public Member Functions | |
virtual bool | load (Common::SeekableReadStream &file)=0 |
virtual bool | usesOverlay () const |
virtual Type | getType () const =0 |
virtual int | getHeight () const =0 |
virtual int | getWidth () const =0 |
virtual int | getCharWidth (uint16 c) const =0 |
virtual int | getCharHeight (uint16 c) const |
virtual void | setColorMap (const uint8 *src)=0 |
virtual void | set16bitColorMap (const uint16 *src) |
virtual void | setStyles (int styles) |
virtual void | drawChar (uint16 c, byte *dst, int pitch, int bpp) const =0 |
virtual void | drawChar (uint16 c, byte *dst, int pitch, int xOffs, int yOffs) const |
A class that handles KYRA fonts.
|
pure virtual |
Tries to load a file from the given stream
Implemented in Kyra::MultiSubsetFont, Kyra::JohabFontLoK, Kyra::ChineseFont, Kyra::SJISFont, Kyra::AMIGAFont, and Kyra::DOSFont.
|
inlinevirtual |
Whether the font draws on the overlay.
Reimplemented in Kyra::SJISFont.
|
pure virtual |
Whether the font is Ascii or Sjis.
Implemented in Kyra::MultiSubsetFont, Kyra::JohabFontLoK, Kyra::ChineseFont, Kyra::SJISFont, Kyra::AMIGAFont, and Kyra::DOSFont.
|
pure virtual |
The font height.
Implemented in Kyra::MultiSubsetFont, Kyra::JohabFontLoK, Kyra::ChineseFont, Kyra::SJISFont, Kyra::AMIGAFont, and Kyra::DOSFont.
|
pure virtual |
The font width, this is the maximal character width.
Implemented in Kyra::MultiSubsetFont, Kyra::JohabFontLoK, Kyra::ChineseFont, Kyra::SJISFont, Kyra::AMIGAFont, and Kyra::DOSFont.
|
pure virtual |
Gets the width of a specific character.
Implemented in Kyra::MultiSubsetFont, Kyra::JohabFontLoK, Kyra::ChineseFont, Kyra::SJISFont, Kyra::AMIGAFont, and Kyra::DOSFont.
|
inlinevirtual |
Gets the height of a specific character. The only font that needs this is the SegaCD one. For all other fonts this is a fixed value.
Reimplemented in Kyra::MultiSubsetFont, Kyra::JohabFontLoK, and Kyra::ChineseFont.
|
pure virtual |
Sets a text palette map. The map contains 16 entries.
Implemented in Kyra::MultiSubsetFont, Kyra::JohabFontLoK, Kyra::ChineseFont, Kyra::SJISFont, Kyra::AMIGAFont, and Kyra::DOSFont.
|
inlinevirtual |
Sets a text 16bit palette map. Only used in in EOB II FM-Towns. The map contains 2 entries.
|
inlinevirtual |
Sets a drawing style. Only rudimentary implementation based on what is needed.
Reimplemented in Kyra::MultiSubsetFont, Kyra::ChineseFont, and Kyra::SJISFont.
|
pure virtual |
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.
Implemented in Kyra::MultiSubsetFont, Kyra::JohabFontLoK, Kyra::ChineseFont, Kyra::SJISFont, Kyra::AMIGAFont, and Kyra::DOSFont.