aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorBastien Bouclet2015-11-22 14:18:14 +0100
committerBastien Bouclet2015-12-21 18:41:14 +0100
commit2d86f6da9c0ee2ffa80a2b570c148ea337b09cec (patch)
tree245b7c44d49e1e77f0b0b31732b3ce700285cf42 /gui
parent366e164705a920ccd5de9dc606399f9c5b54913c (diff)
downloadscummvm-rg350-2d86f6da9c0ee2ffa80a2b570c148ea337b09cec.tar.gz
scummvm-rg350-2d86f6da9c0ee2ffa80a2b570c148ea337b09cec.tar.bz2
scummvm-rg350-2d86f6da9c0ee2ffa80a2b570c148ea337b09cec.zip
GRAPHICS: Introduce a size mode for TrueType fonts
Allows to match Windows font size selection by converting font heights to point sizes using the TrueType tables.
Diffstat (limited to 'gui')
-rw-r--r--gui/ThemeEngine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp
index 6562a1d922..536e5192e0 100644
--- a/gui/ThemeEngine.cpp
+++ b/gui/ThemeEngine.cpp
@@ -1459,7 +1459,7 @@ const Graphics::Font *ThemeEngine::loadScalableFont(const Common::String &filena
for (Common::ArchiveMemberList::const_iterator i = members.begin(), end = members.end(); i != end; ++i) {
Common::SeekableReadStream *stream = (*i)->createReadStream();
if (stream) {
- font = Graphics::loadTTFFont(*stream, pointsize, 0, Graphics::kTTFRenderModeLight,
+ font = Graphics::loadTTFFont(*stream, pointsize, Graphics::kTTFSizeModeCharacter, 0, Graphics::kTTFRenderModeLight,
#ifdef USE_TRANSLATION
TransMan.getCharsetMapping()
#else