Choose a better monospace font on macOS

* Fixes #1917
This commit is contained in:
Jonathan White 2019-12-30 12:20:37 -05:00
parent 2a51f2cba5
commit db032831e0

View File

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