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/fontcache.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/fontcache.h')
-rw-r--r-- | src/fontcache.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fontcache.h b/src/fontcache.h index 9a08ba09f..62ce596f3 100644 --- a/src/fontcache.h +++ b/src/fontcache.h @@ -202,7 +202,7 @@ static inline bool GetDrawGlyphShadow(FontSize size) return FontCache::Get(size)->GetDrawGlyphShadow(); } -#ifdef WITH_FREETYPE +#if defined(WITH_FREETYPE) || defined(_WIN32) /** Settings for a single freetype font. */ struct FreeTypeSubSetting { @@ -221,7 +221,7 @@ struct FreeTypeSettings { extern FreeTypeSettings _freetype; -#endif /* WITH_FREETYPE */ +#endif /* defined(WITH_FREETYPE) || defined(_WIN32) */ void InitFreeType(bool monospace); void UninitFreeType(); |