summaryrefslogtreecommitdiff
path: root/src/textfile_gui.cpp
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2018-11-25 02:00:42 +0100
committerOwen Rudge <owen@owenrudge.net>2019-05-14 11:21:36 +0100
commit2675762ae9c58c47dc442b422927206c7bee13a8 (patch)
treecb1272f39546c66c03441887b3541fb48e6f96f3 /src/textfile_gui.cpp
parenta8b6e9f23cc7f8c0835743d462fd27a20af6518e (diff)
downloadopenttd-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/textfile_gui.cpp')
-rw-r--r--src/textfile_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textfile_gui.cpp b/src/textfile_gui.cpp
index 7a2eb44ca..07851e12f 100644
--- a/src/textfile_gui.cpp
+++ b/src/textfile_gui.cpp
@@ -196,7 +196,7 @@ void TextfileWindow::SetupScrollbars()
/* virtual */ void TextfileWindow::SetFontNames(FreeTypeSettings *settings, const char *font_name)
{
-#ifdef WITH_FREETYPE
+#if defined(WITH_FREETYPE) || defined(_WIN32)
strecpy(settings->mono.font, font_name, lastof(settings->mono.font));
#endif /* WITH_FREETYPE */
}