Reduce console verbosity for TTF loading.

This commit is contained in:
Aaron van Geffen authored and Michael Steenbeek committed 2017-11-17 10:31:26 +01:00
1 parent a292917e50
commit 13f99e495e
2 files changed
+7 -7

No files matched your search

+2 -2
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;
}
+5 -5
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