|
| std::unique_ptr< FontCache > | LoadFont (FontSize fs, FontType fonttype, bool search, const std::string &font_name, const std::any &os_handle) const override |
| | Try loading a font with this factory.
|
| bool | FindFallbackFont (const std::string &language_isocode, MissingGlyphSearcher *callback) const override |
| | We would like to have a fallback font as the current one doesn't contain all characters we need.
|
|
| | FontCacheFactory (std::string_view name, std::string_view description) |
| | ~FontCacheFactory () override |
| | Unregister this factory.
|
| 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.
|
Definition at line 269 of file font_win32.cpp.
◆ Win32FontCacheFactory()
| Win32FontCacheFactory::Win32FontCacheFactory |
( |
| ) |
|
|
inline |
◆ FindFallbackFont()
| bool Win32FontCacheFactory::FindFallbackFont |
( |
const std::string & | language_isocode, |
|
|
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 303 of file font_win32.cpp.
References Debug, and OTTD2FS().
◆ LoadFont()
| std::unique_ptr< FontCache > Win32FontCacheFactory::LoadFont |
( |
FontSize | fs, |
|
|
FontType | fonttype, |
|
|
bool | search, |
|
|
const std::string & | font_name, |
|
|
const std::any & | os_handle ) const |
|
inlineoverridevirtual |
◆ LoadWin32Font()
| std::unique_ptr< FontCache > Win32FontCacheFactory::LoadWin32Font |
( |
FontSize | fs, |
|
|
const LOGFONT & | logfont, |
|
|
uint | size, |
|
|
std::string_view | font_name ) |
|
inlinestaticprivate |
◆ TryLoadFontFromFile()
| bool Win32FontCacheFactory::TryLoadFontFromFile |
( |
const std::string & | font_name, |
|
|
LOGFONT & | logfont ) |
|
inlinestaticprivate |
◆ instance
The documentation for this class was generated from the following file: