From 13f99e495ef1a91e046652445d2a96bef8b6da12 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Mon, 30 Oct 2017 15:39:36 +0100 Subject: [PATCH] Reduce console verbosity for TTF loading. --- src/openrct2/drawing/ttf.c | 4 ++-- src/openrct2/interface/Fonts.cpp | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/openrct2/drawing/ttf.c b/src/openrct2/drawing/ttf.c index 209fcecf44..4853850ee5 100644 --- a/src/openrct2/drawing/ttf.c +++ b/src/openrct2/drawing/ttf.c @@ -78,13 +78,13 @@ bool ttf_initialise() utf8 fontPath[MAX_PATH]; if (!platform_get_font_path(fontDesc, fontPath, sizeof(fontPath))) { - log_error("Unable to load font '%s'", fontDesc->font_name); + log_verbose("Unable to load font '%s'", fontDesc->font_name); return false; } fontDesc->font = ttf_open_font(fontPath, fontDesc->ptSize); if (fontDesc->font == NULL) { - log_error("Unable to load '%s'", fontPath); + log_verbose("Unable to load '%s'", fontPath); return false; } diff --git a/src/openrct2/interface/Fonts.cpp b/src/openrct2/interface/Fonts.cpp index 943ef32283..07b78432a3 100644 --- a/src/openrct2/interface/Fonts.cpp +++ b/src/openrct2/interface/Fonts.cpp @@ -155,7 +155,7 @@ void TryLoadFonts() { return; } - Console::Error::WriteLine("Unable to initialise configured TrueType font -- falling back to the language's default."); + log_verbose("Unable to initialise configured TrueType font -- falling back to the language's default."); } for (auto &font : *fontFamily) @@ -166,12 +166,12 @@ void TryLoadFonts() } TTFFontDescriptor smallFont = font->size[FONT_SIZE_SMALL]; - Console::Error::WriteLine("Unable to load TrueType font '%s' -- trying the next font in the family.", smallFont.font_name); + log_verbose("Unable to load TrueType font '%s' -- trying the next font in the family.", smallFont.font_name); } if (fontFamily != &TTFFamilySansSerif) { - Console::Error::WriteLine("Unable to initialise any of the preferred TrueType fonts -- falling back to sans serif fonts."); + log_verbose("Unable to initialise any of the preferred TrueType fonts -- falling back to sans serif fonts."); for (auto &font : TTFFamilySansSerif) { @@ -181,10 +181,10 @@ void TryLoadFonts() } TTFFontDescriptor smallFont = font->size[FONT_SIZE_SMALL]; - Console::Error::WriteLine("Unable to load TrueType font '%s' -- trying the next font in the family.", smallFont.font_name); + log_verbose("Unable to load TrueType font '%s' -- trying the next font in the family.", smallFont.font_name); } - Console::Error::WriteLine("Unable to initialise any of the preferred TrueType fonts -- falling back to sprite font."); + log_verbose("Unable to initialise any of the preferred TrueType fonts -- falling back to sprite font."); } } #endif // NO_TTF