OpenTTD Source 20251213-master-g1091fa6071
FontCacheFactory Class Referenceabstract

Factory for FontCaches. More...

#include <fontcache.h>

Inheritance diagram for FontCacheFactory:
BaseProvider< FontCacheFactory > CoreTextFontCacheFactory FreeTypeFontCacheFactory SpriteFontCacheFactory Win32FontCacheFactory

Public Member Functions

 FontCacheFactory (std::string_view name, std::string_view description)
 
virtual std::unique_ptr< FontCacheLoadFont (FontSize fs, FontType fonttype, bool search, const std::string &font_name, std::span< const std::byte > os_handle) const =0
 
virtual bool FindFallbackFont (const std::string &language_isocode, FontSizes fontsizes, class MissingGlyphSearcher *callback) const =0
 
- 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
 

Additional Inherited Members

- Protected Attributes inherited from BaseProvider< FontCacheFactory >
const std::string_view name
 
const std::string_view description
 

Detailed Description

Factory for FontCaches.

Definition at line 304 of file fontcache.h.

Constructor & Destructor Documentation

◆ FontCacheFactory()

FontCacheFactory::FontCacheFactory ( std::string_view  name,
std::string_view  description 
)
inline

Definition at line 306 of file fontcache.h.

◆ ~FontCacheFactory()

virtual FontCacheFactory::~FontCacheFactory ( )
inlinevirtual

Definition at line 311 of file fontcache.h.

Member Function Documentation

◆ LoadFont()

virtual std::unique_ptr< FontCache > FontCacheFactory::LoadFont ( FontSize  fs,
FontType  fonttype,
bool  search,
const std::string &  font_name,
std::span< const std::byte >  os_handle 
) const
pure virtual

The documentation for this class was generated from the following file: