Log missing fonts

Fixes https://github.com/mkxp-z/mkxp-z/issues/43
This commit is contained in:
Splendide Imaginarius 2023-10-17 08:10:28 +00:00
parent db87204e71
commit 27b78eed5a

View file

@ -28,6 +28,8 @@
#include "util.h"
#include "config.h"
#include "debugwriter.h"
#include <string>
#include <utility>
@ -252,6 +254,17 @@ void pickExistingFontName(const std::vector<std::string> &names,
out = names[i];
return;
}
else
{
if (i == 0)
{
Debug() << "Primary font not found:" << names[i];
}
else
{
Debug() << "Fallback font not found:" << names[i];
}
}
}
out = "";