OpenTTD Source 20250905-master-g122023be8d
|
Public Member Functions | |
std::unique_ptr< FontCache > | LoadFont (FontSize fs, FontType fonttype) override |
Loads the TrueType font. | |
bool | FindFallbackFont (FontCacheSettings *settings, const std::string &language_isocode, MissingGlyphSearcher *callback) override |
![]() | |
FontCacheFactory (std::string_view name, std::string_view description) | |
![]() | |
constexpr | BaseProvider (std::string_view name, std::string_view description) |
std::string_view | GetName () const |
std::string_view | GetDescription () const |
Static Private Member Functions | |
static CTFontDescriptorRef | LoadFontFromFile (const std::string &font_name) |
Static Private Attributes | |
static CoreTextFontCacheFactory | instance |
Additional Inherited Members | |
![]() | |
const std::string_view | name |
const std::string_view | description |
Definition at line 204 of file font_osx.cpp.
|
inline |
Definition at line 206 of file font_osx.cpp.
|
inlineoverridevirtual |
Implements FontCacheFactory.
Definition at line 262 of file font_osx.cpp.
|
inlineoverridevirtual |
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. |
Implements FontCacheFactory.
Definition at line 214 of file font_osx.cpp.
References GetFontCacheFontName(), GetFontCacheFontSize(), GetFontCacheSubSetting(), MacOSVersionIsAtLeast(), settings, and TrueType.
|
inlinestaticprivate |
Definition at line 347 of file font_osx.cpp.
|
staticprivate |
Definition at line 382 of file font_osx.cpp.