OpenTTD
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 
30 #if defined(WITH_FREETYPE) || defined(_WIN32)
31 
41 bool SetFallbackFont(FreeTypeSettings *settings, const char *language_isocode, int winlangid, class MissingGlyphSearcher *callback);
42 
43 #endif /* defined(WITH_FREETYPE) || defined(WIN32)*/
44 
45 #endif
fluid_settings_t * settings
FluidSynth settings handle.
Definition: fluidsynth.cpp:20
bool SetFallbackFont(FreeTypeSettings *settings, const char *language_isocode, int winlangid, class MissingGlyphSearcher *callback)
We would like to have a fallback font as the current one doesn&#39;t contain all characters we need...
Settings for the freetype fonts.
Definition: fontcache.h:224
Functions to read fonts from files and cache them.
A searcher for missing glyphs.
Definition: strings_func.h:244
FT_Error GetFontByFaceName(const char *font_name, FT_Face *face)
Load a freetype font face with the given font name.