--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgDiffDialog.py Mon Oct 12 17:23:15 2020 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgDiffDialog.py Mon Oct 12 17:39:45 2020 +0200 @@ -7,7 +7,6 @@ Module implementing a dialog to show the output of the hg diff command process. """ - from PyQt5.QtCore import pyqtSlot, QFileInfo, Qt from PyQt5.QtGui import QTextCursor from PyQt5.QtWidgets import QWidget, QDialogButtonBox @@ -51,8 +50,7 @@ self.vcs = vcs font = Preferences.getEditorOtherFonts("MonospacedFont") - self.contents.setFontFamily(font.family()) - self.contents.setFontPointSize(font.pointSize()) + self.contents.document().setDefaultFont(font) self.highlighter = HgDiffHighlighter(self.contents.document())