|
OpenTTD Source
1.11.0-beta2
|
#include "../../stdafx.h"#include "../../debug.h"#include "../../fontdetection.h"#include "../../string_func.h"#include "../../strings_func.h"#include <fontconfig/fontconfig.h>#include "safeguards.h"#include <ft2build.h>#include <FT_FREETYPE_H>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 (FreeTypeSettings *settings, const char *language_isocode, int winlangid, MissingGlyphSearcher *callback) |
| We would like to have a fallback font as the current one doesn't contain all characters we need. More... | |
Variables | |
| FT_Library | _library |
Functions related to font handling on Unix/Fontconfig.
Definition in file font_unix.cpp.
| 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 28 of file font_unix.cpp.
References ShowInfoF(), and stredup().
| bool SetFallbackFont | ( | struct FreeTypeSettings * | settings, |
| const char * | 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 97 of file font_unix.cpp.
References DEBUG, MissingGlyphSearcher::FindMissingGlyphs(), InitFreeType(), lastof, MissingGlyphSearcher::Monospace(), seprintf(), MissingGlyphSearcher::SetFontNames(), and settings.