aboutsummaryrefslogtreecommitdiff
path: root/graphics/fontman.h
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/fontman.h')
-rw-r--r--graphics/fontman.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/graphics/fontman.h b/graphics/fontman.h
index 09c1a198ff..42f7d856fa 100644
--- a/graphics/fontman.h
+++ b/graphics/fontman.h
@@ -32,6 +32,7 @@
namespace Graphics {
class Font;
+class BdfFont;
class FontManager : public Common::Singleton<FontManager> {
public:
@@ -43,6 +44,14 @@ public:
};
/**
+ * Sets the localized font name.
+ *
+ * @param name the name of the localized font.
+ * @return true when the font was present, false otherwise.
+ */
+ bool setLocalizedFont(const Common::String &name);
+
+ /**
* Retrieve a font object based on its 'name'.
*
* @param name the name of the font to be retrieved.
@@ -67,7 +76,7 @@ public:
* @param font the font object
* @return true on success, false on failure
*/
- bool setFont(FontUsage usage, const Font *font);
+ bool setFont(FontUsage usage, const BdfFont *font);
/**
* Removes binding from name to font
@@ -96,22 +105,13 @@ public:
//const Font *getFontBySize(int size???) const;
-protected:
- /**
- * Get the name of the localized font for the given usage. There is no garanty that
- * the font exists. If the usage is kLocalizedFont it returns an empty string.
- *
- * @param usage a FontUsage enum value indicating what the font will be used for.
- * @return the name of a localized font or an empty string if no suitable font was found.
- */
- Common::String getLocalizedFontNameByUsage(FontUsage usage) const;
-
private:
friend class Common::Singleton<SingletonBaseType>;
FontManager();
~FontManager();
Common::HashMap<Common::String, const Font *> _fontMap;
+ Common::String _localizedFontName;
};