[Scummvm-git-logs] scummvm master -> 588b7121e89cbabc9551b13e387ab09b858c6d13

bluegr noreply at scummvm.org
Sun Jul 26 17:20:49 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:
588b7121e8 GRAPHICS: Add kTTFRenderModeNormalWithGridFitting


Commit: 588b7121e89cbabc9551b13e387ab09b858c6d13
    https://github.com/scummvm/scummvm/commit/588b7121e89cbabc9551b13e387ab09b858c6d13
Author: Helco (hermann.noll at hotmail.com)
Date: 2026-07-26T20:20:44+03:00

Commit Message:
GRAPHICS: Add kTTFRenderModeNormalWithGridFitting

Changed paths:
    graphics/fonts/ttf.cpp
    graphics/fonts/ttf.h


diff --git a/graphics/fonts/ttf.cpp b/graphics/fonts/ttf.cpp
index ee567ddb684..04891484465 100644
--- a/graphics/fonts/ttf.cpp
+++ b/graphics/fonts/ttf.cpp
@@ -332,6 +332,11 @@ bool TTFFont::load(Common::SeekableReadStream *ttfFile, DisposeAfterUse::Flag di
 		_renderMode = FT_RENDER_MODE_MONO;
 		break;
 
+	case kTTFRenderModeNormalWithGridFitting:
+		_loadFlags = FT_LOAD_TARGET_MONO;
+		_renderMode = FT_RENDER_MODE_NORMAL;
+		break;
+
 	default:
 		break;
 	}
diff --git a/graphics/fonts/ttf.h b/graphics/fonts/ttf.h
index d026a96ff23..77946abb792 100644
--- a/graphics/fonts/ttf.h
+++ b/graphics/fonts/ttf.h
@@ -57,7 +57,13 @@ enum TTFRenderMode {
 	 * Render fully monochrome. This makes glyph pixels either be fully opaque
 	 * or fully transparent.
 	 */
-	kTTFRenderModeMonochrome
+	kTTFRenderModeMonochrome,
+
+	/**
+	 * Standard render mode, but uses strong grid-fitting.
+	 * Equivalent of FreeType2's FT_RENDER_MODE_NORMAL with FT_LOAD_TARGET_MONO
+	 */
+	kTTFRenderModeNormalWithGridFitting
 };
 
 /**




More information about the Scummvm-git-logs mailing list