diff options
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp')
-rw-r--r-- | src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp b/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp index 9c264fca..46ca056b 100644 --- a/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp +++ b/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp @@ -61,8 +61,7 @@ void SyntaxFile::SetupDocument(QPlainTextEdit* editor){ QString type = formatObj.value("font_type").toString(); QFont font = editor->document()->defaultFont(); // current font if(type=="monospace"){ - font = QFont("monospace"); - //font = QFontDatabase::systemFont(QFontDatabase::FixedFont); //get the default fixed-size font for the system + font.setFamily("monospace"); //Make sure we don't change other properties of the font like size } font.setStyle(QFont::StyleNormal); font.setStyleStrategy(QFont::PreferAntialias); |