Fixed explicit monospace font declaratipon on macOS

This commit is contained in:
Philipp Wolfer
2020-06-23 09:00:48 +02:00
parent 0c96675a83
commit e1c3ceaa64
2 changed files with 1 additions and 3 deletions

View File

@@ -227,8 +227,6 @@ class Tagger(QtWidgets.QApplication):
if IS_MACOS:
# On macOS it is not common that the global menu shows icons
self.setAttribute(QtCore.Qt.AA_DontShowIconsInMenus)
# Ensure monospace font works on macOS
QtGui.QFont.insertSubstitution('Monospace', 'Menlo')
# Setup logging
log.debug("Starting Picard from %r", os.path.abspath(__file__))

View File

@@ -42,7 +42,7 @@ from picard.util import restore_method
if IS_MACOS:
FONT_FAMILY_MONOSPACE = 'Menlo'
if IS_WIN:
elif IS_WIN:
FONT_FAMILY_MONOSPACE = 'Courier'
else:
FONT_FAMILY_MONOSPACE = 'Monospace'