[Scummvm-git-logs] scummvm master -> fd75208f27df1dd72dfdba713c198bb9d5b710d4

sev- noreply at scummvm.org
Sat Dec 30 21:18:55 UTC 2023


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

Summary:
df3ee65585 GRAPHICS: MACGUI: Added mre debug output
fd75208f27 NEWS: Set 2.8.0 release nickname


Commit: df3ee65585c9deab64f3a70710cff6e3c72934d6
    https://github.com/scummvm/scummvm/commit/df3ee65585c9deab64f3a70710cff6e3c72934d6
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2023-12-30T22:17:18+01:00

Commit Message:
GRAPHICS: MACGUI: Added mre debug output

Changed paths:
    graphics/macgui/macfontmanager.cpp
    graphics/macgui/macfontmanager.h


diff --git a/graphics/macgui/macfontmanager.cpp b/graphics/macgui/macfontmanager.cpp
index 7de05fe1532..47203d0eb45 100644
--- a/graphics/macgui/macfontmanager.cpp
+++ b/graphics/macgui/macfontmanager.cpp
@@ -469,6 +469,8 @@ const Font *MacFontManager::getFont(MacFont *macFont) {
 		macFont->setId(aliasForId);
 	}
 
+	printFontRegistry(3, kDebugLevelMacGUI);
+
 	if (!_builtInFonts) {
 		Common::Language lang = getFontLanguage(macFont->getId());
 		if (lang == Common::JA_JPN && !_japaneseFontsLoaded) {
@@ -863,4 +865,15 @@ void MacFont::setFallback(const Font *font, Common::String name) {
 	_fallbackName = name;
 }
 
+void MacFontManager::printFontRegistry(int debugLevel, uint32 channel) {
+		debugC(debugLevel, channel, "Font Registry: %d items", _fontRegistry.size());
+
+		for (Common::HashMap<Common::String, MacFont *>::iterator i = _fontRegistry.begin(); i != _fontRegistry.end(); ++i) {
+			MacFont *f = i->_value;
+			debugC(debugLevel, channel, "name: '%s' gen:%c ttf:%c ID: %d size: %d slant: %d fallback: '%s'",
+				toPrintable(f->getName()).c_str(), f->isGenerated() ? 'y' : 'n', f->isTrueType() ? 'y' : 'n',
+				f->getId(), f->getSize(), f->getSlant(), toPrintable(f->getFallbackName()).c_str());
+		}
+}
+
 } // End of namespace Graphics
diff --git a/graphics/macgui/macfontmanager.h b/graphics/macgui/macfontmanager.h
index 3af8864e264..48ea9d8a220 100644
--- a/graphics/macgui/macfontmanager.h
+++ b/graphics/macgui/macfontmanager.h
@@ -172,6 +172,8 @@ public:
 
 	const Common::Array<MacFontFamily *> &getFontFamilies() { return _fontFamilies; }
 
+	void printFontRegistry(int debugLevel, uint32 channel);
+
 private:
 	void loadFontsBDF();
 	void loadFonts();


Commit: fd75208f27df1dd72dfdba713c198bb9d5b710d4
    https://github.com/scummvm/scummvm/commit/fd75208f27df1dd72dfdba713c198bb9d5b710d4
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2023-12-30T22:17:54+01:00

Commit Message:
NEWS: Set 2.8.0 release nickname

Changed paths:
    NEWS.md


diff --git a/NEWS.md b/NEWS.md
index da564051c78..4121fd7b46f 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -10,7 +10,7 @@ For a more comprehensive changelog of the latest experimental code, see:
    - Added support for Russian CD fan-translation for Ringworld.
 
 
-#### 2.8.0 (2023-12-30)
+#### 2.8.0 "Mysteries, Mammoths, and Muppets" (2023-12-30)
 
  New games:
    - Added support for macOS versions of Syberia and Syberia II.




More information about the Scummvm-git-logs mailing list