Add: Automatically load fonts for missing glyphs. (#14856)

This commit is contained in:
Peter Nelson
2025-12-06 12:22:25 +00:00
committed by dP
parent eae2d6b62c
commit c26a9827b8
4 changed files with 60 additions and 4 deletions

View File

@@ -2329,7 +2329,7 @@ static bool ConContent(std::span<std::string_view> argv)
*/
static std::string_view FontLoadReasonToName(FontLoadReason load_reason)
{
static const std::string_view LOAD_REASON_TO_NAME[] = { "default", "configured", "language" };
static const std::string_view LOAD_REASON_TO_NAME[] = { "default", "configured", "language", "missing" };
static_assert(std::size(LOAD_REASON_TO_NAME) == to_underlying(FontLoadReason::End));
return LOAD_REASON_TO_NAME[to_underlying(load_reason)];
}