aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/support/font.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-03 18:10:25 -0400
committerPaul Gilbert2016-04-03 18:10:25 -0400
commitebdc773247fb1e6a41f58ee8336986dcdc8e75d6 (patch)
tree9c5faff1321705f31fde1c2ac1acdb3adfe4a5e2 /engines/titanic/support/font.h
parent2699efd633334be7fade6e890c0a9b32edc08677 (diff)
downloadscummvm-rg350-ebdc773247fb1e6a41f58ee8336986dcdc8e75d6.tar.gz
scummvm-rg350-ebdc773247fb1e6a41f58ee8336986dcdc8e75d6.tar.bz2
scummvm-rg350-ebdc773247fb1e6a41f58ee8336986dcdc8e75d6.zip
TITANIC: Implement font loading
Diffstat (limited to 'engines/titanic/support/font.h')
-rw-r--r--engines/titanic/support/font.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/titanic/support/font.h b/engines/titanic/support/font.h
index 0fff5125df..c41f4dc1e0 100644
--- a/engines/titanic/support/font.h
+++ b/engines/titanic/support/font.h
@@ -39,7 +39,7 @@ public:
size_t _dataSize;
int _field8;
int _maxCharWidth;
- Common::Array<CharEntry> _chars;
+ CharEntry _chars[256];
int _field810;
int _field814;
int _field818;
@@ -53,6 +53,11 @@ public:
void load(int fontNumber);
/**
+ * Return the width in pixels of the specified text
+ */
+ int stringWidth(const CString &text) const;
+
+ /**
* Write out a string
* TODO: Verify this
*/