aboutsummaryrefslogtreecommitdiff
path: root/engines/access/data.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/access/data.h')
-rw-r--r--engines/access/data.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/engines/access/data.h b/engines/access/data.h
index 93184563c4..6d783b15dc 100644
--- a/engines/access/data.h
+++ b/engines/access/data.h
@@ -86,9 +86,40 @@ public:
};
class Font {
+private:
+ int _v1;
+ int _v2;
+ Common::Array<const byte *> _chars;
+public:
+ Font();
+
+ /**
+ * Load the given font data
+ */
+ void load(const int *index, const byte *data);
+
+ /**
+ * Get the width of a given character
+ */
+ int charWidth(char c);
+
+ /**
+ * Get the width of a given string
+ */
+ int stringWidth(const Common::String &msg);
+};
+
+class FontManager {
public:
FontVal _charSet;
FontVal _charFor;
+ Common::Point _printOrg;
+ Common::Point _printStart;
+ int _printMaxX;
+ Font _font6x6;
+ Font _font2;
+public:
+ FontManager();
};
} // End of namespace Access