aboutsummaryrefslogtreecommitdiff
path: root/graphics/sjis.h
diff options
context:
space:
mode:
authorJohannes Schickel2009-07-26 14:17:06 +0000
committerJohannes Schickel2009-07-26 14:17:06 +0000
commit0a612f40eb047fc80fafb1a7df4b8788d2c4fe66 (patch)
tree335cc276f7000db293a4006a3e6528ad2b4499b7 /graphics/sjis.h
parent712e0c80eaef79870a302749ae3e91c637088f81 (diff)
downloadscummvm-rg350-0a612f40eb047fc80fafb1a7df4b8788d2c4fe66.tar.gz
scummvm-rg350-0a612f40eb047fc80fafb1a7df4b8788d2c4fe66.tar.bz2
scummvm-rg350-0a612f40eb047fc80fafb1a7df4b8788d2c4fe66.zip
Add support for our custom SJIS font.
svn-id: r42813
Diffstat (limited to 'graphics/sjis.h')
-rw-r--r--graphics/sjis.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/graphics/sjis.h b/graphics/sjis.h
index 954f673f54..661a8834b0 100644
--- a/graphics/sjis.h
+++ b/graphics/sjis.h
@@ -133,6 +133,25 @@ private:
const uint16 *getCharData(uint16 c) const;
};
+/**
+ * Our custom SJIS FNT.
+ */
+class FontSjisSVM : public FontSJIS16x16 {
+public:
+ FontSjisSVM() : _fontData(0) {}
+ ~FontSjisSVM() { delete[] _fontData; }
+
+ /**
+ * Load the ROM data from "SJIS.FNT".
+ */
+ bool loadData();
+
+private:
+ uint16 *_fontData;
+
+ const uint16 *getCharData(uint16 c) const;
+};
+
// TODO: Consider adding support for PC98 ROM
} // end of namespace Graphics