From db032831e04843afa02501bb5e0ca2e78e8e1a47 Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Mon, 30 Dec 2019 12:20:37 -0500 Subject: [PATCH] Choose a better monospace font on macOS * Fixes #1917 --- src/gui/Font.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/Font.cpp b/src/gui/Font.cpp index f53daed93..021380c29 100644 --- a/src/gui/Font.cpp +++ b/src/gui/Font.cpp @@ -36,6 +36,11 @@ QFont Font::fixedFont() fixedFont = consolasFont; } #endif +#ifdef Q_OS_MACOS + // Qt doesn't choose a monospace font correctly on macOS + const QFont defaultFont; + fixedFont = QFontDatabase().font("Menlo", defaultFont.styleName(), defaultFont.pointSize()); +#endif return fixedFont; }