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:
committed by
Peter Nelson
parent
140f2b291a
commit
e1a50abcbb
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user