1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00

Reduce console verbosity for TTF loading.

This commit is contained in:
Aaron van Geffen
2017-10-30 15:39:36 +01:00
committed by Michael Steenbeek
parent a292917e50
commit 13f99e495e
2 changed files with 7 additions and 7 deletions

View File

@@ -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;
}

View File

@@ -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