OpenTTD Source 20241224-master-gee860a5c8e
|
Functions related to font handling on Win32. More...
#include "../../core/alloc_type.hpp"
#include "../../fontcache/truetypefontcache.h"
#include "win32.h"
#include <windows.h>
Go to the source code of this file.
Data Structures | |
class | Win32FontCache |
Font cache for fonts that are based on a Win32 font. More... | |
Functions | |
void | LoadWin32Font (FontSize fs) |
Loads the GDI font. | |
Functions related to font handling on Win32.
Definition in file font_win32.h.
void LoadWin32Font | ( | FontSize | fs | ) |
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. |
Definition at line 352 of file font_win32.cpp.
References convert_to_fs(), FS_MONO, GetFontCacheFontName(), GetFontCacheFontSize(), GetFontCacheSubSetting(), MemSetT(), and settings.
Referenced by InitFontCache().