From 68198d6c32bb84cda1e36600e5208851b51635e9 Mon Sep 17 00:00:00 2001 From: Niels Boehm Date: Thu, 29 Jun 2017 06:53:50 +0200 Subject: [PATCH] Make one log font monospaced for all platforms. The MonoSpaceFont of the LogWindow was using a Windows native way to specify a font name. Now it's using wxFONTFAMILY_TELETYPE. On Win32 it will additionally request the specific font name "Consolas", so it doesn't use ugly "Courier New". I pilfered that specialization from Source/Core/DolphinWX/Cheats/ARCodeAddEdit.cpp. --- Source/Core/DolphinWX/LogWindow.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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);