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

Text item fails to render "Segoe MDL2 Assets"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.3, 6.6.3, 6.7.2, 6.8.0 Beta2
    • Quick: Other
    • None
    • Windows

    Description

      The Text item fails to render single gylphs from "Segoe MDL2 Assets" with renderTypeQuality = Text.VeryHighRenderTypeQuality:

      import QtQuick
      import QtQuick.Controls
      
      Window {
          id: main
      
          width: 480
          height: 480
          visible: true
      
          Text {
              id: fontIcon
      
              anchors.centerIn: parent
      
              font.family: "Segoe MDL2 Assets"
              font.pixelSize: Math.min(main.width, main.height) * 0.8
              text: "\ue163"
      
              renderTypeQuality: Text.HighRenderTypeQuality
          }
      
          Button {
              font.pixelSize: 24
              text: "Make it crash now!"
      
              onClicked: fontIcon.renderTypeQuality = Text.VeryHighRenderTypeQuality
          }
      }
      

      This font is somewhat important, as it is Microsoft's pre-installed symbol font for Windows 10.

      With Qt 6.8.0 Beta2 the situation is detected at least and a warning is printed, while the text item remains empty. For older version of Qt (6.5.3, 6.6.3, 6.7.2) the example code below crashes reproducibly. Qt 5.15 is not affected as it doesn't know the renderTypeQuality property.

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            hasselmm Mathias Hasselmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes