OpenTTD Source  20241108-master-g80f628063a
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 FontCacheSettings *settings, const std::string &language_isocode, int winlangid, class MissingGlyphSearcher *callback);
41 
42 #endif
A searcher for missing glyphs.
Definition: strings_func.h:116
fluid_settings_t * settings
FluidSynth settings handle.
Definition: fluidsynth.cpp:21
Functions to read fonts from files and cache them.
FT_Error GetFontByFaceName(const char *font_name, FT_Face *face)
Load a freetype font face with the given font name.
Definition: font_unix.cpp:42
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.
Definition: font_osx.cpp:27
Settings for the four different fonts.
Definition: fontcache.h:200