OpenTTD Source 20250918-master-g2d13bcb7b9
font_unix.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 FONT_UNIX_H
11#define FONT_UNIX_H
12
13#ifdef WITH_FONTCONFIG
14
15#include "../../fontcache.h"
16
17#include <ft2build.h>
18#include FT_FREETYPE_H
19
20FT_Error GetFontByFaceName(std::string_view font_name, FT_Face *face);
21
22bool FontConfigFindFallbackFont(FontCacheSettings *settings, const std::string &language_isocode, MissingGlyphSearcher *callback);
23
24#endif /* WITH_FONTCONFIG */
25
26#endif /* FONT_UNIX_H */
A searcher for missing glyphs.
fluid_settings_t * settings
FluidSynth settings handle.
FT_Error GetFontByFaceName(std::string_view font_name, FT_Face *face)
Load a freetype font face with the given font name.
Definition font_unix.cpp:70
Settings for the four different fonts.
Definition fontcache.h:180