summaryrefslogtreecommitdiff
path: root/src/fontcache.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-12-22 17:46:27 +0000
committerrubidium <rubidium@openttd.org>2013-12-22 17:46:27 +0000
commit00c05e79b19546ccde2aa3ddb7726523224e3df9 (patch)
treea2d684e951cede1ff0c3fb3520193c5e0f0054a6 /src/fontcache.h
parentb02179bd8e269f8373a32980438f0eb9d61f5a62 (diff)
downloadopenttd-00c05e79b19546ccde2aa3ddb7726523224e3df9.tar.xz
(svn r26170) -Feature-ish: add the currently used fonts to the crash log
Diffstat (limited to 'src/fontcache.h')
-rw-r--r--src/fontcache.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fontcache.h b/src/fontcache.h
index 646adff1a..804ad2c4b 100644
--- a/src/fontcache.h
+++ b/src/fontcache.h
@@ -120,6 +120,12 @@ public:
virtual const void *GetFontTable(uint32 tag, size_t &length) = 0;
/**
+ * Get the name of this font.
+ * @return The name of the font.
+ */
+ virtual const char *GetFontName() = 0;
+
+ /**
* Get the font cache of a given font size.
* @param fs The font size to look up.
* @return The font cache.