aboutsummaryrefslogtreecommitdiff
path: root/graphics/fontman.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/fontman.cpp')
-rw-r--r--graphics/fontman.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/graphics/fontman.cpp b/graphics/fontman.cpp
index 6f1d282d54..f40cf97602 100644
--- a/graphics/fontman.cpp
+++ b/graphics/fontman.cpp
@@ -117,11 +117,13 @@ const Font *FontManager::getFontByUsage(FontUsage usage) const {
if (font)
return font;
}
+#ifdef USE_TRANSLATION
// Accept any other font that has the charset in its name
for (Common::HashMap<Common::String, const Font *>::const_iterator it = _fontMap.begin() ; it != _fontMap.end() ; ++it) {
if (it->_key.contains(TransMan.getCurrentCharset()))
return it->_value;
}
+#endif
// Fallback: return a non localized kGUIFont.
// Maybe we should return a null pointer instead?
return g_sysfont;