Factory for FontCaches.
More...
#include <fontcache.h>
|
| | FontCacheFactory (std::string_view name, std::string_view description) |
| | ~FontCacheFactory () override |
| | Unregister this factory.
|
| virtual std::unique_ptr< FontCache > | LoadFont (FontSize fs, FontType fonttype, bool search, const std::string &font_name, const std::any &os_handle) const =0 |
| | Try loading a font with this factory.
|
| virtual bool | FindFallbackFont (const std::string &language_isocode, class MissingGlyphSearcher *callback) const =0 |
| | We would like to have a fallback font as the current one doesn't contain all characters we need.
|
| constexpr | BaseProvider (std::string_view name, std::string_view description) |
| | Create the provider.
|
|
virtual | ~BaseProvider ()=default |
| | Ensure the destructor of the sub classes are called as well.
|
| std::string_view | GetName () const |
| | Get the name of this provider.
|
| std::string_view | GetDescription () const |
| | Get a description of this provider.
|
|
| const std::string_view | name |
| | The name of the provider.
|
| const std::string_view | description |
| | A description of the provider.
|
Factory for FontCaches.
Definition at line 237 of file fontcache.h.
◆ FontCacheFactory()
| FontCacheFactory::FontCacheFactory |
( |
std::string_view | name, |
|
|
std::string_view | description ) |
|
inline |
◆ ~FontCacheFactory()
| FontCacheFactory::~FontCacheFactory |
( |
| ) |
|
|
inlineoverride |
◆ FindFallbackFont()
| virtual bool FontCacheFactory::FindFallbackFont |
( |
const std::string & | language_isocode, |
|
|
class MissingGlyphSearcher * | callback ) const |
|
pure virtual |
◆ LoadFont()
| virtual std::unique_ptr< FontCache > FontCacheFactory::LoadFont |
( |
FontSize | fs, |
|
|
FontType | fonttype, |
|
|
bool | search, |
|
|
const std::string & | font_name, |
|
|
const std::any & | os_handle ) const |
|
pure virtual |
The documentation for this class was generated from the following file: