OpenTTD Source
20241108-master-g80f628063a
|
Functions related to detecting/finding the right font. More...
Go to the source code of this file.
Functions | |
FT_Error | GetFontByFaceName (const char *font_name, FT_Face *face) |
Load a freetype font face with the given font name. More... | |
bool | SetFallbackFont (struct FontCacheSettings *settings, const std::string &language_isocode, int winlangid, class MissingGlyphSearcher *callback) |
We would like to have a fallback font as the current one doesn't contain all characters we need. More... | |
Functions related to detecting/finding the right font.
Definition in file fontdetection.h.
FT_Error GetFontByFaceName | ( | const char * | 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 42 of file font_unix.cpp.
bool SetFallbackFont | ( | struct FontCacheSettings * | settings, |
const std::string & | language_isocode, | ||
int | winlangid, | ||
class MissingGlyphSearcher * | callback | ||
) |
We would like to have a fallback font as the current one doesn't contain all characters we need.
This function must set all fonts of settings.
settings | the settings to overwrite the fontname of. |
language_isocode | the language, e.g. en_GB. |
winlangid | the language ID windows style. |
callback | The function to call to check for missing glyphs. |
Definition at line 27 of file font_osx.cpp.
References Debug, MissingGlyphSearcher::FindMissingGlyphs(), InitFontCache(), lengthof, MissingGlyphSearcher::Monospace(), MissingGlyphSearcher::SetFontNames(), and settings.