|
OpenTTD Source 20251213-master-g1091fa6071
|
Public Member Functions | |
| std::unique_ptr< FontCache > | LoadFont (FontSize fs, FontType fonttype, bool search, const std::string &font, std::span< const std::byte > os_handle) const override |
| Loads the GDI font. | |
| bool | FindFallbackFont (const std::string &language_isocode, FontSizes fontsizes, MissingGlyphSearcher *callback) const override |
Static Private Member Functions | |
| static std::unique_ptr< FontCache > | LoadWin32Font (FontSize fs, const LOGFONT &logfont, uint size, std::string_view font_name) |
| static bool | TryLoadFontFromFile (const std::string &font_name, LOGFONT &logfont) |
Static Private Attributes | |
| static Win32FontCacheFactory | instance |
Additional Inherited Members | |
Private Member Functions inherited from FontCacheFactory | |
| FontCacheFactory (std::string_view name, std::string_view description) | |
Private 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 |
Private Attributes inherited from BaseProvider< FontCacheFactory > | |
| const std::string_view | name |
| const std::string_view | description |
Definition at line 268 of file font_win32.cpp.
|
inline |
Definition at line 270 of file font_win32.cpp.
|
inlineoverridevirtual |
Implements FontCacheFactory.
Definition at line 306 of file font_win32.cpp.
|
inlineoverridevirtual |
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.
| fs | The font size to load. |
Implements FontCacheFactory.
Definition at line 278 of file font_win32.cpp.
References convert_to_fs(), FS_MONO, GetFontCacheFontSize(), StrContainsIgnoreCase(), and TrueType.
|
inlinestaticprivate |
Definition at line 332 of file font_win32.cpp.
|
inlinestaticprivate |
Definition at line 344 of file font_win32.cpp.
|
staticprivate |
Definition at line 394 of file font_win32.cpp.