OpenTTD
fontdetection.h
Go to the documentation of this file.
1 /* $Id: fontdetection.h 25450 2013-06-23 18:32:02Z rubidium $ */
2 
3 /*
4  * This file is part of OpenTTD.
5  * 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.
6  * 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.
7  * 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/>.
8  */
9 
12 #ifndef FONTDETECTION_H
13 #define FONTDETECTION_H
14 
15 #include "fontcache.h"
16 
17 #ifdef WITH_FREETYPE
18 
19 #include <ft2build.h>
20 #include FT_FREETYPE_H
21 
28 FT_Error GetFontByFaceName(const char *font_name, FT_Face *face);
29 
40 bool SetFallbackFont(FreeTypeSettings *settings, const char *language_isocode, int winlangid, class MissingGlyphSearcher *callback);
41 
42 #endif /* WITH_FREETYPE */
43 
44 #endif
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:204
Functions to read fonts from files and cache them.
A searcher for missing glyphs.
Definition: strings_func.h:246
FT_Error GetFontByFaceName(const char *font_name, FT_Face *face)
Load a freetype font face with the given font name.