aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeEngine.h
diff options
context:
space:
mode:
authorJohannes Schickel2012-01-07 02:51:50 +0100
committerWillem Jan Palenstijn2012-01-29 16:26:20 +0100
commitd21ae1aa40f7ef5442d98c377800a0157af069c8 (patch)
tree1807abeb88d130e73f969accc763c247e731a522 /gui/ThemeEngine.h
parent843b9f96655feda8c78450d9236b09330bdb6bd1 (diff)
downloadscummvm-rg350-d21ae1aa40f7ef5442d98c377800a0157af069c8.tar.gz
scummvm-rg350-d21ae1aa40f7ef5442d98c377800a0157af069c8.tar.bz2
scummvm-rg350-d21ae1aa40f7ef5442d98c377800a0157af069c8.zip
GUI: Add support for loading TTF files with ISO-8859-1 charset.
Diffstat (limited to 'gui/ThemeEngine.h')
-rw-r--r--gui/ThemeEngine.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/gui/ThemeEngine.h b/gui/ThemeEngine.h
index 2377098957..c49952ba0f 100644
--- a/gui/ThemeEngine.h
+++ b/gui/ThemeEngine.h
@@ -35,7 +35,7 @@
#include "graphics/pixelformat.h"
-#define SCUMMVM_THEME_VERSION_STR "SCUMMVM_STX0.8.7"
+#define SCUMMVM_THEME_VERSION_STR "SCUMMVM_STX0.8.8"
class OSystem;
@@ -411,10 +411,12 @@ public:
* Interface for the ThemeParser class: Loads a font to use on the GUI from the given
* filename.
*
- * @param fontName Identifier name for the font.
- * @param file Name of the font file.
+ * @param fextId Identifier name for the font.
+ * @param file Filename of the non-scalable font version.
+ * @param scalableFile Filename of the scalable version. (Optional)
+ * @param pointsize Point size for the scalable font. (Optional)
*/
- bool addFont(TextData textId, const Common::String &file);
+ bool addFont(TextData textId, const Common::String &file, const Common::String &scalableFile, const int pointsize);
/**
* Interface for the ThemeParser class: adds a text color value.
@@ -536,8 +538,10 @@ protected:
*/
void unloadTheme();
- const Graphics::Font *loadFont(const Common::String &filename, const bool makeLocalizedFont);
+ const Graphics::Font *loadScalableFont(const Common::String &filename, const Common::String &charset, const int pointsize, Common::String &name);
+ const Graphics::Font *loadFont(const Common::String &filename, Common::String &name);
Common::String genCacheFilename(const Common::String &filename) const;
+ const Graphics::Font *loadFont(const Common::String &filename, const Common::String &scalableFilename, const Common::String &charset, const int pointsize, const bool makeLocalizedFont);
/**
* Actual Dirty Screen handling function.