aboutsummaryrefslogtreecommitdiff
path: root/engines/gargoyle/fonts.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gargoyle/fonts.h')
-rw-r--r--engines/gargoyle/fonts.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/engines/gargoyle/fonts.h b/engines/gargoyle/fonts.h
index 4472025239..f2a6eb897d 100644
--- a/engines/gargoyle/fonts.h
+++ b/engines/gargoyle/fonts.h
@@ -59,12 +59,40 @@ public:
*/
virtual ~Fonts();
+ /**
+ * Draws a string using the specified font at the given co-ordinates
+ * @param pos Position for the bottom-left corner the text will be drawn with
+ * @param fontIdx Which font to use
+ * @param rgb RGB tuplet specifying the text color
+ * @param text The text to draw
+ * @param spw ??
+ */
int drawString(const Point &pos, int fontIdx, const byte *rgb, const Common::String &text, int spw = 0);
+ /**
+ * Draws a unicode string using the specified font at the given co-ordinates
+ * @param pos Position for the bottom-left corner the text will be drawn with
+ * @param fontIdx Which font to use
+ * @param rgb RGB tuplet specifying the text color
+ * @param text The text to draw
+ * @param spw ??
+ */
int drawStringUni(const Point &pos, int fontIdx, const byte *rgb, const Common::U32String &text, int spw = 0);
+ /**
+ * Get the width in pixels of a string
+ * @param fontIdx Which font to use
+ * @param text Text to get the width of
+ * @param spw ???
+ */
size_t stringWidth(int fontIdx, const Common::String &text, int spw = -1);
+ /**
+ * Get the width in pixels of a unicode string
+ * @param fontIdx Which font to use
+ * @param text Text to get the width of
+ * @param spw ???
+ */
size_t stringWidthUni(int fontIdx, const Common::U32String &text, int spw = -1);
};