[Scummvm-git-logs] scummvm master -> 7bfe124b7b3417ee371a2c43ae014edb3a006c6d

aquadran noreply at scummvm.org
Sun Aug 2 04:54:34 UTC 2026


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
7bfe124b7b WINTERMUTE: Ported line height tunning from wme lite


Commit: 7bfe124b7b3417ee371a2c43ae014edb3a006c6d
    https://github.com/scummvm/scummvm/commit/7bfe124b7b3417ee371a2c43ae014edb3a006c6d
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2026-08-02T06:54:20+02:00

Commit Message:
WINTERMUTE: Ported line height tunning from wme lite

Changed paths:
    engines/wintermute/base/font/base_font_truetype.cpp


diff --git a/engines/wintermute/base/font/base_font_truetype.cpp b/engines/wintermute/base/font/base_font_truetype.cpp
index 2773edddedd..09f85d4c3e6 100644
--- a/engines/wintermute/base/font/base_font_truetype.cpp
+++ b/engines/wintermute/base/font/base_font_truetype.cpp
@@ -691,13 +691,19 @@ bool BaseFontTT::initFont() {
 		_font = _fallbackFont = FontMan.getFontByUsage(Graphics::FontManager::kBigGUIFont);
 		warning("BaseFontTT::InitFont - Couldn't load font: %s", _fontFile);
 	}
+
 	auto box = _font->getBoundingBox("Ay");
 	_lineHeight = box.bottom - box.top;
+
+	// based on WME lite code:
+	_lineHeight += 2;
+
 #ifdef ENABLE_FOXTAIL
 	if (BaseEngine::instance().isFoxTail(FOXTAIL_1_2_896, FOXTAIL_LATEST_VERSION)) {
 		_lineHeight -= 1;
 	}
 #endif
+
 	return STATUS_OK;
 }
 




More information about the Scummvm-git-logs mailing list