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

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.4.2
    • 5.4.1
    • None
    • * OS X 10.10.3
      * "Use LCD font smoothing when available" enabled in system preferences
    • macOS
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: