https://bugs.kde.org/show_bug.cgi?id=391780

            Bug ID: 391780
           Summary: Qt text rendering is always being used, leading to
                    text looking a little lighter than necessary
           Product: frameworks-qqc2-desktop-style
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: notm...@gmail.com
          Reporter: n...@kde.org
                CC: k...@davidedmundson.co.uk
  Target Milestone: ---

Created attachment 111351
  --> https://bugs.kde.org/attachment.cgi?id=111351&action=edit
top Qt rendering; bottom Native rendering

https://cgit.kde.org/qqc2-desktop-style.git/tree/org.kde.desktop/Label.qml#n36

renderType: Window.devicePixelRatio % 1 !== 0 ? Text.QtRendering :
Text.NativeRendering

However, Window.devicePixelRatio doesn't exist (it would be in the Screen
import, not Window), so the conditional always evaluates to true, so we always
get QtRendering, even at integer scale factors and non-HiDPI. This is what we
want for a non-integer scale factor since the alternative is even worse (see
https://bugreports.qt.io/browse/QTBUG-67007), but for non-hi-dpi and integer
scale factors, we should not use QtRendering, since it results in text that is
ever-so-slightly lighter and wispier, which some very sensitive people can pick
up on. See the attached comparison: the string on the top was rendered with
QtRendering, and the one on the bottom with NativeRendering. Note how the
QtRendering version is slightly lighter.

I plan to submit a patch later today if nobody else beats me to it first.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to