diff options
author | Michael Lutz <michi@icosahedron.de> | 2018-11-25 02:00:42 +0100 |
---|---|---|
committer | Owen Rudge <owen@owenrudge.net> | 2019-05-14 11:21:36 +0100 |
commit | 2675762ae9c58c47dc442b422927206c7bee13a8 (patch) | |
tree | cb1272f39546c66c03441887b3541fb48e6f96f3 /src/fontdetection.h | |
parent | a8b6e9f23cc7f8c0835743d462fd27a20af6518e (diff) | |
download | openttd-2675762ae9c58c47dc442b422927206c7bee13a8.tar.xz |
Add: [Win32] GDI engine for font glyph rendering as a replacement for including FreeType.
Building with FreeType is still possible and will take precedence over the GDI renderer, but
the project files don't include FreeType anymore by default. Combining GDI rendering with ICU
text layout is untested.
Diffstat (limited to 'src/fontdetection.h')
-rw-r--r-- | src/fontdetection.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fontdetection.h b/src/fontdetection.h index edb961e6d..01e0223cd 100644 --- a/src/fontdetection.h +++ b/src/fontdetection.h @@ -27,6 +27,9 @@ */ FT_Error GetFontByFaceName(const char *font_name, FT_Face *face); +#endif /* WITH_FREETYPE */ + +#if defined(WITH_FREETYPE) || defined(_WIN32) /** * We would like to have a fallback font as the current one * doesn't contain all characters we need. @@ -39,6 +42,6 @@ FT_Error GetFontByFaceName(const char *font_name, FT_Face *face); */ bool SetFallbackFont(FreeTypeSettings *settings, const char *language_isocode, int winlangid, class MissingGlyphSearcher *callback); -#endif /* WITH_FREETYPE */ +#endif /* defined(WITH_FREETYPE) || defined(WIN32)*/ #endif |