|
| const std::string_view | name |
| | The name of the provider.
|
| const std::string_view | description |
| | A description of the provider.
|
Definition at line 158 of file spritefontcache.cpp.
◆ SpriteFontCacheFactory()
| SpriteFontCacheFactory::SpriteFontCacheFactory |
( |
| ) |
|
|
inline |
◆ FindFallbackFont()
| bool SpriteFontCacheFactory::FindFallbackFont |
( |
const std::string & | language_isocode, |
|
|
class MissingGlyphSearcher * | callback ) const |
|
inlineoverridevirtual |
We would like to have a fallback font as the current one doesn't contain all characters we need.
- Parameters
-
| language_isocode | The language, e.g. en_GB. |
| callback | The function to call to check for missing glyphs. |
- Returns
true if a font has been set, false otherwise.
Implements FontCacheFactory.
Definition at line 169 of file spritefontcache.cpp.
◆ LoadFont()
| std::unique_ptr< FontCache > SpriteFontCacheFactory::LoadFont |
( |
FontSize | fs, |
|
|
FontType | fonttype, |
|
|
bool | search, |
|
|
const std::string & | font_name, |
|
|
const std::any & | os_handle ) const |
|
inlineoverridevirtual |
Try loading a font with this factory.
- Parameters
-
| fs | Font size to load. |
| fonttype | Font type requested. |
| search | Set if searching for the font. |
| font_name | Font name to load. |
| os_handle | Font handle to load. |
- Returns
- FontCache of the font if loaded, or nullptr.
Implements FontCacheFactory.
Definition at line 162 of file spritefontcache.cpp.
References Sprite.
◆ instance
The documentation for this class was generated from the following file: