OpenTTD Source 20250905-master-g122023be8d
|
Functions related to detecting/finding the right font. More...
Go to the source code of this file.
Functions | |
FT_Error | GetFontByFaceName (std::string_view font_name, FT_Face *face) |
Load a freetype font face with the given font name. | |
bool | FontConfigFindFallbackFont (FontCacheSettings *settings, const std::string &language_isocode, MissingGlyphSearcher *callback) |
Functions related to detecting/finding the right font.
Definition in file font_unix.h.
bool FontConfigFindFallbackFont | ( | FontCacheSettings * | settings, |
const std::string & | language_isocode, | ||
MissingGlyphSearcher * | callback | ||
) |
Definition at line 126 of file font_unix.cpp.
FT_Error GetFontByFaceName | ( | std::string_view | font_name, |
FT_Face * | face | ||
) |
Load a freetype font face with the given font name.
font_name | The name of the font to load. |
face | The face that has been found. |
Definition at line 70 of file font_unix.cpp.
References FromFcString(), SplitFontFamilyAndStyle(), StrEqualsIgnoreCase(), and ToFcString().
Referenced by FreeTypeFontCacheFactory::LoadFont().