summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorLeo Lam <leolino.lam@gmail.com>2017-06-29 22:02:42 +0200
committerGitHub <noreply@github.com>2017-06-29 22:02:42 +0200
commitade319f09c973e40a9d7dc70a7dc19942522c8a3 (patch)
tree412b526fcf6381b403910fe7a4109399a28299ca /Source
parentc29c1f92af12eed0c90fbf81dfb69dd47510a668 (diff)
parent68198d6c32bb84cda1e36600e5208851b51635e9 (diff)
Merge pull request #5722 from blubberdiblub/fix-log-window-monospace-font
Make "Monospaced font" in the log window actually monospaced for all platforms.
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinWX/LogWindow.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/Core/DolphinWX/LogWindow.cpp b/Source/Core/DolphinWX/LogWindow.cpp
index b7a9a34088..2edb42254b 100644
--- a/Source/Core/DolphinWX/LogWindow.cpp
+++ b/Source/Core/DolphinWX/LogWindow.cpp
@@ -69,7 +69,12 @@ void CLogWindow::CreateGUIControls()
m_FontChoice->Append(_("Selected font"));
DefaultFont = GetFont();
- MonoSpaceFont.SetNativeFontInfoUserDesc("lucida console windows-1252");
+ MonoSpaceFont.SetFamily(wxFONTFAMILY_TELETYPE);
+#ifdef _WIN32
+ // Windows uses Courier New for monospace even though there are better fonts.
+ MonoSpaceFont.SetFaceName("Consolas");
+#endif
+ MonoSpaceFont.SetPointSize(DefaultFont.GetPointSize());
LogFont.push_back(DefaultFont);
LogFont.push_back(MonoSpaceFont);
LogFont.push_back(DebuggerFont);