From dda569b221a7fa698b8228ea86519c8e59d46efd Mon Sep 17 00:00:00 2001 From: Igor Date: Tue, 1 Oct 2024 09:17:26 +0200 Subject: [PATCH] [4.4.3] set fontengine=directwrite Antialiasing=true, Smooth=true --- src/app/configs/qt_win.conf | 3 ++- src/framework/uicomponents/view/quickpaintedview.cpp | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/configs/qt_win.conf b/src/app/configs/qt_win.conf index 99c707827928b..36400fe1e23a3 100644 --- a/src/app/configs/qt_win.conf +++ b/src/app/configs/qt_win.conf @@ -2,4 +2,5 @@ Prefix=./ [Platforms] -WindowsArguments = fontengine=freetype +#WindowsArguments = fontengine=freetype +WindowsArguments = fontengine=directwrite diff --git a/src/framework/uicomponents/view/quickpaintedview.cpp b/src/framework/uicomponents/view/quickpaintedview.cpp index c079bb7d9c5b7..9b4209fcd775f 100644 --- a/src/framework/uicomponents/view/quickpaintedview.cpp +++ b/src/framework/uicomponents/view/quickpaintedview.cpp @@ -26,9 +26,14 @@ using namespace muse::uicomponents; QuickPaintedView::QuickPaintedView(QQuickItem* parent) : QQuickPaintedItem(parent) { +#ifdef Q_OS_WIN + setAntialiasing(true); + setSmooth(true); +#else //! NOTE It is necessary that when UI scaling is displayed without a blur setAntialiasing(false); setSmooth(false); +#endif } QSGNode* QuickPaintedView::updatePaintNode(QSGNode* old, UpdatePaintNodeData* data)