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

[REG 5.13.0 -> 5.13.1] Some fonts look crumbly when Text.NativeRendering is chosen

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 5.13.1
    • Quick: Other
    • Windows 10 64 bit
    • Windows

    Description

      1. Start Qt Creator.
      2. From the menu, select "Analyze" -> "QML Profiler Options" -> "Load QML Trace".
      3. Select a QML trace file, e.g. the one I attached.
        The times above the Timeline view look terribly crumbly:

        This is more obvious on a UHD screen.

      This problem did not exist in Qt Creator 4.10 beta1, which was still based on Qt 5.13.0

      The following piece of QML, as reported by antar in the comments below, seems to be a smaller example to reproduce the issue without Qt Creator:

      import QtQuick 2.12
      import QtQuick.Window 2.12
      
      Window {
        visible: true
        width: 640
        height: 480
        title: qsTr("Native Text Rendering")
      
        Column {
          anchors.centerIn: parent
          spacing: 10
      
          Repeater {
            model: 10
      
            Row {
              anchors.horizontalCenter: parent.horizontalCenter
              spacing: 10
      
              Text {
                text: "Font Size " + font.pixelSize
                font.family: "Open Sans"
                font.pixelSize: 8 + index
                renderType: Text.NativeRendering
              }
              Text {
                text: "Bold"
                font.family: "Open Sans"
                font.pixelSize: 8 + index
                font.bold: true
                renderType: Text.NativeRendering
              }
              Text {
                text: "Italic"
                font.family: "Open Sans"
                font.pixelSize: 8 + index
                font.italic: true
                renderType: Text.NativeRendering
              }
              Text {
                text: "BoldItalic"
                font.family: "Open Sans"
                font.pixelSize: 8 + index
                font.bold: true
                font.italic: true
                renderType: Text.NativeRendering
              }
            }
          }
        }
      }
      

      The difference between 5.13.0 and 5.13.1 is apparent:

      Attachments

        1. Sans_5.13.1.PNG
          Sans_5.13.1.PNG
          13 kB
        2. Sans_5.13.0.PNG
          Sans_5.13.0.PNG
          16 kB
        3. qtdiag.txt
          8 kB
        4. qmltrace.qzt
          0.6 kB
        5. crumbly.png
          crumbly.png
          18 kB

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              rlohning Robert Löhning
              Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes