|
| | FontCacheFactory (std::string_view name, std::string_view description) |
| | ~FontCacheFactory () override |
| | Unregister this factory.
|
| constexpr | BaseProvider (std::string_view name, std::string_view description) |
|
virtual | ~BaseProvider ()=default |
| | Ensure the destructor of the sub classes are called as well.
|
| std::string_view | GetName () const |
| std::string_view | GetDescription () const |
| const std::string_view | name |
| const std::string_view | description |
Definition at line 269 of file font_win32.cpp.
◆ Win32FontCacheFactory()
| Win32FontCacheFactory::Win32FontCacheFactory |
( |
| ) |
|
|
inline |
◆ FindFallbackFont()
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.
- Parameters
-
| 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. |
- Returns
true if a font has been set, false otherwise.
Implements FontCacheFactory.
Definition at line 313 of file font_win32.cpp.
References Debug, OTTD2FS(), and settings.
◆ LoadFont()
Loads the GDI font.
If a GDI font description is present, e.g. from the automatic font fallback search, use it. Otherwise, try to resolve it by font name.
- Parameters
-
| fs | The font size to load. |
| fonttype | The type of font that is being loaded. |
- Returns
- FontCache of the font if loaded, or
nullptr.
Implements FontCacheFactory.
Definition at line 281 of file font_win32.cpp.
References convert_to_fs(), FS_MONO, GetFontCacheFontName(), GetFontCacheFontSize(), GetFontCacheSubSetting(), settings, StrContainsIgnoreCase(), and TrueType.
◆ 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: