|
OpenTTD Source 20251213-master-g1091fa6071
|
Static Public Member Functions | |
| static std::unique_ptr< FontCache > | LoadFont (FontSize fs, FontType fonttype, bool search, const std::string &font_name, std::span< const std::byte > os_handle) |
| Try loading a font with any fontcache factory. | |
| static bool | FindFallbackFont (const std::string &language_isocode, FontSizes fontsizes, class MissingGlyphSearcher *callback) |
| We would like to have a fallback font as the current one doesn't contain all characters we need. | |
Additional Inherited Members | |
Private Member Functions inherited from ProviderManager< FontCacheFactory > | |
| ProviderManager (ProviderManager const &)=delete | |
| ProviderManager & | operator= (ProviderManager const &)=delete |
Static Private Member Functions inherited from ProviderManager< FontCacheFactory > | |
| static void | Register (const FontCacheFactory &instance) |
| static void | Unregister (const FontCacheFactory &instance) |
| static std::vector< const FontCacheFactory * > & | GetProviders () |
| Get the currently known providers. | |
Definition at line 320 of file fontcache.h.
|
static |
We would like to have a fallback font as the current one doesn't contain all characters we need.
This function must set all fonts of settings.
| settings | the settings to overwrite the fontname of. |
| language_isocode | the language, e.g. en_GB. |
| callback | The function to call to check for missing glyphs. |
Definition at line 58 of file fontcache.cpp.
References ProviderManager< FontCacheFactory >::GetProviders().
Referenced by CheckForMissingGlyphs().
|
static |
Try loading a font with any fontcache factory.
Definition at line 39 of file fontcache.cpp.
References ProviderManager< FontCacheFactory >::GetProviders().
Referenced by FontCache::LoadFontCaches().