From a709596b48b93e46b36f2142f6d781a5198fe8a2 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Tue, 19 May 2015 12:39:39 +0200 Subject: AGI: implement original sierra font, fix bug #6405 custom font is still used for fanmade games i cannot test preAGI games, because I don't own those. --- engines/agi/agi.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'engines/agi/agi.cpp') diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp index 85a8e175bd..2b5d7137bc 100644 --- a/engines/agi/agi.cpp +++ b/engines/agi/agi.cpp @@ -515,6 +515,8 @@ AgiBase::AgiBase(OSystem *syst, const AGIGameDescription *gameDesc) : Engine(sys _rnd = new Common::RandomSource("agi"); _sound = 0; + _fontData = NULL; + initFeatures(); initVersion(); } @@ -569,6 +571,13 @@ AgiEngine::AgiEngine(OSystem *syst, const AGIGameDescription *gameDesc) : AgiBas _game.mouseEnabled = false; } + // We are currently using the custom font for all fanmade games + if (!(getFeatures() & (GF_FANMADE | GF_AGDS))) { + _fontData = fontData_Sierra; // original Sierra font + } else { + _fontData = fontData_FanGames; // our (own?) custom font, that supports umlauts etc. + } + _game._vm = this; _game.clockEnabled = false; -- cgit v1.2.3