OpenTTD Source 20241224-master-gee860a5c8e
|
Functions related to font handling on MacOS. More...
#include "../../fontcache/truetypefontcache.h"
#include "os/macosx/macos.h"
#include <CoreFoundation/CoreFoundation.h>
Go to the source code of this file.
Data Structures | |
class | CoreTextFontCache |
Functions | |
void | LoadCoreTextFont (FontSize fs) |
Loads the TrueType font. | |
Functions related to font handling on MacOS.
Definition in file font_osx.h.
void LoadCoreTextFont | ( | FontSize | fs | ) |
Loads the TrueType font.
If a CoreText 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 329 of file font_osx.cpp.
References GetFontCacheFontName(), GetFontCacheFontSize(), GetFontCacheSubSetting(), MacOSVersionIsAtLeast(), and settings.
Referenced by InitFontCache().