From bfa4af41730fc1cb93a12d7a50d8ed80eae0690a Mon Sep 17 00:00:00 2001 From: Vitaly Zaitsev Date: Mon, 8 Feb 2021 18:30:16 +0100 Subject: [PATCH] Backported fonts scaling fixes. --- nheko-scaling-fixes.patch | 24 ++++++++++++++++++++++++ nheko.spec | 8 +++++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 nheko-scaling-fixes.patch diff --git a/nheko-scaling-fixes.patch b/nheko-scaling-fixes.patch new file mode 100644 index 0000000..85c2be3 --- /dev/null +++ b/nheko-scaling-fixes.patch @@ -0,0 +1,24 @@ +From 375e20462ba3641db3b71c12a66533c63ac2d597 Mon Sep 17 00:00:00 2001 +From: Nicolas Werner +Date: Sun, 7 Feb 2021 02:01:25 +0100 +Subject: [PATCH] Native rendering breaks kerning + +--- + src/timeline/TimelineViewManager.cpp | 4 ---- + 1 file changed, 4 deletions(-) + +diff --git a/src/timeline/TimelineViewManager.cpp b/src/timeline/TimelineViewManager.cpp +index 93451976..dab735db 100644 +--- a/src/timeline/TimelineViewManager.cpp ++++ b/src/timeline/TimelineViewManager.cpp +@@ -170,10 +170,6 @@ TimelineViewManager::TimelineViewManager(CallManager *callManager, ChatPage *par + view->setResizeMode(QQuickWidget::SizeRootObjectToView); + container->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); + +-#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)) +- view->quickWindow()->setTextRenderType(QQuickWindow::NativeTextRendering); +-#endif +- + connect(view, &QQuickWidget::statusChanged, this, [](QQuickWidget::Status status) { + nhlog::ui()->debug("Status changed to {}", status); + }); diff --git a/nheko.spec b/nheko.spec index 23dde08..0c85cf9 100644 --- a/nheko.spec +++ b/nheko.spec @@ -11,7 +11,7 @@ Name: nheko Version: 0.8.1 -Release: 1%{?dist} +Release: 2%{?dist} # Main source - GPLv3+ # cpp-httplib - bundled - MIT @@ -22,6 +22,9 @@ Summary: Desktop client for the Matrix protocol URL: https://github.com/Nheko-Reborn/%{name} Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz +# https://github.com/Nheko-Reborn/nheko/commit/375e20462ba3641db3b71c12a66533c63ac2d597 +Patch100: %{name}-scaling-fixes.patch + BuildRequires: cmake(MatrixClient) >= 0.4.0 BuildRequires: cmake(Olm) >= 3.1.0 BuildRequires: cmake(Qt5Concurrent) @@ -127,6 +130,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/%{name}.* %changelog +* Mon Feb 08 2021 Vitaly Zaitsev - 0.8.1-2 +- Backported fonts scaling fixes. + * Sat Jan 30 2021 Vitaly Zaitsev - 0.8.1-1 - Updated to version 0.8.1.