OpenTTD Source: src/fontdetection.h Source File

OpenTTD Source 1.11.0-RC1

fontdetection.h
Go to the documentation of this file.
1 /*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
6 */
7
10 #ifndef FONTDETECTION_H
11 #define FONTDETECTION_H
12
13 #include "fontcache.h"
14
15 #ifdef WITH_FREETYPE
16
17 #include <ft2build.h>
18 #include FT_FREETYPE_H
19
26 FT_Error GetFontByFaceName(const char *font_name, FT_Face *face);
27
28 #endif /* WITH_FREETYPE */
29
40 bool SetFallbackFont(struct FreeTypeSettings *settings, const char *language_isocode, int winlangid, class MissingGlyphSearcher *callback);
41
42 #endif
MissingGlyphSearcher
A searcher for missing glyphs.
Definition: strings_func.h:244
settings
fluid_settings_t * settings
FluidSynth settings handle.
Definition: fluidsynth.cpp:21
GetFontByFaceName
FT_Error GetFontByFaceName(const char *font_name, FT_Face *face)
Load a freetype font face with the given font name.
Definition: font_osx.cpp:35
fontcache.h
FreeTypeSettings
Settings for the freetype fonts.
Definition: fontcache.h:225
SetFallbackFont
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.
Definition: font_osx.cpp:70