PICARD-571: Fix monospace font on macOS

This commit is contained in:
Philipp Wolfer
2019-09-02 20:35:54 +02:00
parent 4cf23481e5
commit 220340b8dd

View File

@@ -201,6 +201,8 @@ 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__))