<table><tr><td style="">ngraham created this revision.<br />ngraham added reviewers: Plasma, davidedmundson.<br />Restricted Application added a project: Frameworks.<br />Restricted Application added a subscriber: Frameworks.<br />ngraham requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D11244">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>When <tt style="background: #ebebeb; font-size: 13px;">PLASMA_USE_QT_SCALING=1</tt> is set, Plasma uses native Qt scaling. This works fine for integer scale factors, and fixes a lot of bugs (see <a href="https://bugs.kde.org/show_bug.cgi?id=356446" class="remarkup-link" target="_blank" rel="noreferrer">Bug 356446</a> but it introduces a new one: with non-integer scale factors, text becomes blurry and pixellated, because NativeRenderins is used, and PlasmaComponents QML objects don't implement the fix that QQC2-desktop-style does to force the use of Qt font rendering for non-integer scale factors. This patch fixes that, and gets us one step closer to being able to use Qt scaling in Plasmashell.</p>

<p>There is no effect when <tt style="background: #ebebeb; font-size: 13px;">PLASMA_USE_QT_SCALING=1</tt> is not being used.</p>

<p>FIXED-IN 5.13<br />
BUG: 391691</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Before: <tt style="background: #ebebeb; font-size: 13px;">PLASMA_USE_QT_SCALING=1</tt> set, 1.2 scale factor: Plasma text looks awful</p>

<p>After: <tt style="background: #ebebeb; font-size: 13px;">PLASMA_USE_QT_SCALING=1</tt> set, 1.2 scale factor: Plasma text looks amazing!</p>

<p>Witout both <tt style="background: #ebebeb; font-size: 13px;">PLASMA_USE_QT_SCALING=1</tt> and a non-integer scale factor set, there is no visual change.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R242 Plasma Framework (Library)</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D11244">https://phabricator.kde.org/D11244</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>examples/applets/testtheme/contents/ui/FontGizmo.qml<br />
src/declarativeimports/plasmacomponents/qml/Label.qml<br />
src/declarativeimports/plasmacomponents/qml/private/DualStateButton.qml<br />
src/declarativeimports/plasmacomponents3/ComboBox.qml<br />
src/declarativeimports/plasmacomponents3/Label.qml<br />
src/declarativeimports/plasmacomponents3/TextArea.qml<br />
src/declarativeimports/plasmacomponents3/TextField.qml<br />
src/declarativeimports/plasmastyle/ComboBoxStyle.qml<br />
src/declarativeimports/plasmastyle/SpinBoxStyle.qml<br />
src/declarativeimports/plasmastyle/TextAreaStyle.qml<br />
src/declarativeimports/plasmastyle/TextFieldStyle.qml</div></div></div><br /><div><strong>To: </strong>ngraham, Plasma, davidedmundson<br /><strong>Cc: </strong>Frameworks, michaelh<br /></div>