Backported fonts scaling fixes.

This commit is contained in:
Vitaly Zaitsev 2021-02-08 18:30:16 +01:00
parent 52091b8ddf
commit bfa4af4173
No known key found for this signature in database
GPG Key ID: BF99FC6DD45AB90A
2 changed files with 31 additions and 1 deletions

24
nheko-scaling-fixes.patch Normal file
View File

@ -0,0 +1,24 @@
From 375e20462ba3641db3b71c12a66533c63ac2d597 Mon Sep 17 00:00:00 2001
From: Nicolas Werner <nicolas.werner@hotmail.de>
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);
});

View File

@ -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 <vitaly@easycoding.org> - 0.8.1-2
- Backported fonts scaling fixes.
* Sat Jan 30 2021 Vitaly Zaitsev <vitaly@easycoding.org> - 0.8.1-1
- Updated to version 0.8.1.