Merge pull request #5722 from blubberdiblub/fix-log-window-monospace-font

Make "Monospaced font" in the log window actually monospaced for all platforms.
This commit is contained in:
Leo Lam 2017-06-29 22:02:42 +02:00 committed by GitHub
commit ade319f09c
1 changed files with 6 additions and 1 deletions

View File

@ -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);