summaryrefslogtreecommitdiff
path: root/src/fontcache.cpp
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.cpp
parentb02179bd8e269f8373a32980438f0eb9d61f5a62 (diff)
downloadopenttd-00c05e79b19546ccde2aa3ddb7726523224e3df9.tar.xz
(svn r26170) -Feature-ish: add the currently used fonts to the crash log
Diffstat (limited to 'src/fontcache.cpp')
-rw-r--r--src/fontcache.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fontcache.cpp b/src/fontcache.cpp
index 9e95fee64..37f949c87 100644
--- a/src/fontcache.cpp
+++ b/src/fontcache.cpp
@@ -81,6 +81,7 @@ public:
virtual bool GetDrawGlyphShadow();
virtual GlyphID MapCharToGlyph(WChar key) { assert(IsPrintable(key)); return SPRITE_GLYPH | key; }
virtual const void *GetFontTable(uint32 tag, size_t &length) { length = 0; return NULL; }
+ virtual const char *GetFontName() { return "sprite"; }
};
/**
@@ -239,6 +240,7 @@ public:
virtual bool GetDrawGlyphShadow();
virtual GlyphID MapCharToGlyph(WChar key);
virtual const void *GetFontTable(uint32 tag, size_t &length);
+ virtual const char *GetFontName() { return face->family_name; }
};
FT_Library _library = NULL;