aboutsummaryrefslogtreecommitdiff
path: root/graphics/fontman.h
diff options
context:
space:
mode:
authorThierry Crozat2011-05-22 15:43:35 +0100
committerThierry Crozat2011-06-06 23:20:09 +0100
commit6b13782967b8b775c359b0ff54e7a17534248dbe (patch)
treed290ff1a2523c5d26ae4ad96942d32ac50808c3c /graphics/fontman.h
parent592cca5402f9162fc70b48f40b95faec44341bd0 (diff)
downloadscummvm-rg350-6b13782967b8b775c359b0ff54e7a17534248dbe.tar.gz
scummvm-rg350-6b13782967b8b775c359b0ff54e7a17534248dbe.tar.bz2
scummvm-rg350-6b13782967b8b775c359b0ff54e7a17534248dbe.zip
GRAPHICS: Move genLocalizedFontFilename() to FontManager class
It was defined in ThemeEngine class , but I moved it to make it possible to use localized font in other places.
Diffstat (limited to 'graphics/fontman.h')
-rw-r--r--graphics/fontman.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/graphics/fontman.h b/graphics/fontman.h
index a388c64bf6..e502c9517e 100644
--- a/graphics/fontman.h
+++ b/graphics/fontman.h
@@ -74,6 +74,15 @@ public:
*/
const Font *getFontByUsage(FontUsage usage) const;
+ /**
+ * Get the localized font for the current TranslationManager charset from the
+ * non localized font name
+ *
+ * @param filename the non-localized font file name.
+ * @return The localized font file name.
+ */
+ Common::String genLocalizedFontFilename(const Common::String &filename) const;
+
//const Font *getFontBySize(int size???) const;