[Scummvm-git-logs] scummvm master -> 71de3facb25d92ac89d8108522455e285a2b83dd
dreammaster
dreammaster at scummvm.org
Sat Aug 7 23:49:44 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
71de3facb2 AGS: Better fix for Gemini Rue German accents
Commit: 71de3facb25d92ac89d8108522455e285a2b83dd
https://github.com/scummvm/scummvm/commit/71de3facb25d92ac89d8108522455e285a2b83dd
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2021-08-07T16:49:37-07:00
Commit Message:
AGS: Better fix for Gemini Rue German accents
Changed paths:
engines/ags/ags.cpp
engines/ags/lib/alfont/alfont.cpp
diff --git a/engines/ags/ags.cpp b/engines/ags/ags.cpp
index d09fa35e99..169b386346 100644
--- a/engines/ags/ags.cpp
+++ b/engines/ags/ags.cpp
@@ -81,6 +81,11 @@ AGSEngine::AGSEngine(OSystem *syst, const AGSGameDescription *gameDesc) : Engine
Common::String forceAA;
if (ConfMan.getActiveDomain()->tryGetVal("force_text_aa", forceAA))
Common::parseBool(forceAA, _forceTextAA);
+
+ // WORKAROUND: Fix incorrect accents in German Gemini Rue
+ // Check if future if this is needed for any other games
+ if (getGameId() == "geminirue" && _gameDescription->desc.language == Common::DE_DEU)
+ _forceTextAA = true;
}
AGSEngine::~AGSEngine() {
diff --git a/engines/ags/lib/alfont/alfont.cpp b/engines/ags/lib/alfont/alfont.cpp
index 1f635815cd..2efe207a04 100644
--- a/engines/ags/lib/alfont/alfont.cpp
+++ b/engines/ags/lib/alfont/alfont.cpp
@@ -34,7 +34,10 @@ Graphics::Font *ALFONT_FONT::getFont() {
#ifdef USE_FREETYPE2
if (!_fonts.contains(_size)) {
// Instantiate the raw TTF data into a font of the given size
- _fonts[_size] = Graphics::loadTTFFont(_ttfData, _size);
+ Graphics::TTFRenderMode renderMode = Graphics::kTTFRenderModeMonochrome;
+ if (ShouldAntiAliasText())
+ renderMode = Graphics::kTTFRenderModeLight;
+ _fonts[_size] = Graphics::loadTTFFont(_ttfData, _size, Graphics::kTTFSizeModeCharacter, 0, renderMode);
assert(_fonts[_size]);
}
More information about the Scummvm-git-logs
mailing list