1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-21 11:22:45 +01:00

Codechange: Move fallback font detection to FontCacheFactory.

Provides a standard interface instead of relying on defines.
This commit is contained in:
Peter Nelson
2025-08-07 18:13:36 +01:00
committed by Peter Nelson
parent 140f2b291a
commit e1a50abcbb
13 changed files with 184 additions and 177 deletions

View File

@@ -163,6 +163,11 @@ public:
return std::make_unique<SpriteFontCache>(fs);
}
bool FindFallbackFont(struct FontCacheSettings *, const std::string &, class MissingGlyphSearcher *) override
{
return false;
}
private:
static SpriteFontCacheFactory instance;
};