Fix font rendering for non-HiDPI and integer scale factors

Authored by ngraham on Mar 12 2018, 10:50 PM.

Description

Fix font rendering for non-HiDPI and integer scale factors

Summary:
QQC2-desktop-style was attempting to force the use of Text.QtRendering for non-integer scale factors. However, it was accidentally using it everywhere. This patch resolves the issue, and makes it use Text.QtRendering only for non-integer scale factors.

BUG: 391780
FIXED-IN: 5.45

Test Plan:
No visual changes when there is a non-integer scale factor.

System Settings before, no scale factor:

System Settings after, no scale factor:

Discover before, no scale factor:

Discover after, no scale factor:

To notice the differences, you will probably have to open them in different tabs, zoom in with Meta++, and switch between the tabs.

Reviewers: mart, davidedmundson, broulik

Reviewed By: mart, davidedmundson

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D11274

Details

Committed
ngrahamMar 13 2018, 1:39 PM
Reviewer
mart
Differential Revision
D11274: Fix font rendering for non-HiDPI and integer scale factors
Parents
R858:05666ffc40c9: GIT_SILENT Upgrade KF5 version to 5.45.0.
Branches
Unknown
Tags
Unknown