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 22b0ffa48bd692f1519182a0fc4e7f6f2d1ff8fa Mon Sep 17 00:00:00 2001 From: Igor Date: Tue, 1 Oct 2024 09:23:36 +0200 Subject: [PATCH 2/2] [4.4.3] set fontengine=directwrite Antialiasing=false, Smooth=true --- src/framework/uicomponents/view/quickpaintedview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/framework/uicomponents/view/quickpaintedview.cpp b/src/framework/uicomponents/view/quickpaintedview.cpp index 9b4209fcd775f..525108fea19c8 100644 --- a/src/framework/uicomponents/view/quickpaintedview.cpp +++ b/src/framework/uicomponents/view/quickpaintedview.cpp @@ -27,7 +27,7 @@ QuickPaintedView::QuickPaintedView(QQuickItem* parent) : QQuickPaintedItem(parent) { #ifdef Q_OS_WIN - setAntialiasing(true); + setAntialiasing(false); setSmooth(true); #else //! NOTE It is necessary that when UI scaling is displayed without a blur