OpenTTD Source: src/os/unix/font_unix.h Source File

OpenTTD Source 15.0-RC2

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 <https://www.gnu.org/licenses/old-licenses/gpl-2.0>.
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 */
MissingGlyphSearcher
A searcher for missing glyphs.
Definition strings_func.h:156
settings
fluid_settings_t * settings
FluidSynth settings handle.
Definition fluidsynth.cpp:25
GetFontByFaceName
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
FontCacheSettings
Settings for the four different fonts.
Definition fontcache.h:180