Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-45885

Text renders with wrong color when using NativeRendering and layer.enabled on a Mac

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.4.1
    • Fix Version/s: 5.4.2
    • Labels:
      None
    • Environment:
      * OS X 10.10.3
      * "Use LCD font smoothing when available" enabled in system preferences
    • Platform/s:
      macOS
    • Commits:
      15ffff51b5cc92eb875785bbd16b6385638fe5dd

      Description

      • When
        • running on a Mac
        • and having default system-wide font settings
        • and displaying a QtQuick Text element
        • and setting renderType to Text.NativeRendering
        • and setting layer.enabled to true
      • I expect the text to render in the color specified in the QML
      • But the text renders in a different color

      Due to this bug, the following code example produces two differently colored text elements. Instead, I would expect both texts to have the same color. I'm attaching a screenshot of this example running.

      Column {
          Text {
              renderType: Text.NativeRendering
              layer.enabled: true
              text: 'foo'
              color: 'gray'
          }
          Text {
              renderType: Text.NativeRendering
              text: 'foo'
              color: 'gray'
          }
      }
      

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              iamsergio Sergio Martins
              Reporter:
              mkle Matthias Kleine
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes