|
OpenTTD Source 20260211-master-g04436b7401
|
Public Member Functions | |
| std::unique_ptr< FontCache > | LoadFont (FontSize fs, FontType fonttype) const override |
| Try loading a font with this factory. | |
| bool | FindFallbackFont (struct FontCacheSettings *, const std::string &, class MissingGlyphSearcher *) const override |
| We would like to have a fallback font as the current one doesn't contain all characters we need. | |
| Public Member Functions inherited from FontCacheFactory | |
| FontCacheFactory (std::string_view name, std::string_view description) | |
| Public Member Functions inherited from BaseProvider< FontCacheFactory > | |
| constexpr | BaseProvider (std::string_view name, std::string_view description) |
| std::string_view | GetName () const |
| std::string_view | GetDescription () const |
Static Private Attributes | |
| static SpriteFontCacheFactory | instance |
Additional Inherited Members | |
| Protected Attributes inherited from BaseProvider< FontCacheFactory > | |
| const std::string_view | name |
| const std::string_view | description |
Definition at line 158 of file spritefontcache.cpp.
|
inline |
Definition at line 160 of file spritefontcache.cpp.
|
inlineoverridevirtual |
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. |
true if a font has been set, false otherwise. Implements FontCacheFactory.
Definition at line 169 of file spritefontcache.cpp.
|
inlineoverridevirtual |
Try loading a font with this factory.
Implements FontCacheFactory.
Definition at line 162 of file spritefontcache.cpp.
References Sprite.
|
staticprivate |
Definition at line 175 of file spritefontcache.cpp.