From dda569b221a7fa698b8228ea86519c8e59d46efd Mon Sep 17 00:00:00 2001 From: Igor Date: Tue, 1 Oct 2024 09:17:26 +0200 Subject: [PATCH 1/2] [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) From d700d0a78eb18b75cba7a84d69d0d23ae8bd55d2 Mon Sep 17 00:00:00 2001 From: Igor Date: Tue, 1 Oct 2024 09:21:37 +0200 Subject: [PATCH 2/2] [4.4.3] set fontengine=directwrite Antialiasing=false, Smooth=false --- src/framework/uicomponents/view/quickpaintedview.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/framework/uicomponents/view/quickpaintedview.cpp b/src/framework/uicomponents/view/quickpaintedview.cpp index 9b4209fcd775f..c079bb7d9c5b7 100644 --- a/src/framework/uicomponents/view/quickpaintedview.cpp +++ b/src/framework/uicomponents/view/quickpaintedview.cpp @@ -26,14 +26,9 @@ 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)