From e2d5a18c3f98e49b984b3cff802a3b8760fa7ddb Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Mon, 11 Mar 2024 17:38:51 +0800 Subject: [PATCH] fix: font not correctly set in the cpuinfo window --- RedPandaIDE/widgets/cpudialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RedPandaIDE/widgets/cpudialog.cpp b/RedPandaIDE/widgets/cpudialog.cpp index dc19d556..541a6fc2 100644 --- a/RedPandaIDE/widgets/cpudialog.cpp +++ b/RedPandaIDE/widgets/cpudialog.cpp @@ -148,7 +148,7 @@ void CPUDialog::resetEditorFont(float dpi) f.setFamily(pSettings->editor().fontName()); f.setFamilies(pSettings->editor().fontFamilies()); f.setPixelSize(pointToPixel(pSettings->editor().fontSize(),dpi)); - f.setStyleStrategy(QFont::NoFontMerging); + f.setStyleStrategy(QFont::PreferAntialias); ui->txtCode->setFont(f); }