diff options
author | Johannes Schickel | 2011-07-01 04:57:47 +0200 |
---|---|---|
committer | Johannes Schickel | 2011-07-01 05:42:54 +0200 |
commit | 685e32dbd7bf352c27e935b930ea24dc8b3380da (patch) | |
tree | 4c0bbdc56e312ae1ab7e335344987b183ba5246a /graphics/sjis.h | |
parent | c047f871d646e89ccaacedb83136112244eb1b44 (diff) | |
download | scummvm-rg350-685e32dbd7bf352c27e935b930ea24dc8b3380da.tar.gz scummvm-rg350-685e32dbd7bf352c27e935b930ea24dc8b3380da.tar.bz2 scummvm-rg350-685e32dbd7bf352c27e935b930ea24dc8b3380da.zip |
GRAPHICS: Offer support for PCE font data of SJIS.FNT.
Diffstat (limited to 'graphics/sjis.h')
-rw-r--r-- | graphics/sjis.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/graphics/sjis.h b/graphics/sjis.h index d455a96e64..90357af446 100644 --- a/graphics/sjis.h +++ b/graphics/sjis.h @@ -130,7 +130,7 @@ public: }; /** - * A base class to render 16x16 (2 byte chars), 8x16 (1 byte chars) monochrome SJIS fonts. + * A base class to render monochrome SJIS fonts. */ class FontSJISBase : public FontSJIS { public: @@ -161,6 +161,7 @@ private: protected: DrawingMode _drawMode; bool _flippedMode; + int _fontWidth, _fontHeight; bool isASCII(uint16 ch) const; @@ -195,7 +196,7 @@ private: */ class FontSjisSVM : public FontSJISBase { public: - FontSjisSVM(); + FontSjisSVM(const Common::Platform platform); ~FontSjisSVM(); /** @@ -209,7 +210,15 @@ private: uint8 *_fontData8x16; uint _fontData8x16Size; + uint8 *_fontData12x12; + uint _fontData12x12Size; + virtual const uint8 *getCharData(uint16 c) const; + + const uint8 *getCharDataPCE(uint16 c) const; + const uint8 *getCharDataDefault(uint16 c) const; + + void mapKANJIChar(const uint8 fB, const uint8 sB, int &base, int &index) const; }; // TODO: Consider adding support for PC98 ROM |