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

[REG 5.15.2-6.2.0] Text with BIDI controls is underlined incorrectly

    XMLWordPrintable

Details

    • Windows
    • 20d869f4c5 (qt/qtbase/dev) 895cb5488b (qt/qtbase/6.2) 895cb5488b (qt/tqtc-qtbase/6.2) 9cd3e0c92c (qt/qtbase/6.3) 9cd3e0c92c (qt/tqtc-qtbase/6.3)

    Description

      Text with BIDI controls is underlined incorrectly.

      import QtQuick 2
      import QtQuick.Window 2
      
      Window {
          width: 640
          height: 480
          minimumWidth: 640
          minimumHeight: 480
      
          visible: true
      
          readonly property string fsi: '\u2068'
          readonly property string pdi: '\u2069'
          readonly property string wrappedText: 'test test' 
      
          Text {
              anchors.centerIn: parent
              text: fsi + wrappedText + pdi
              font.underline: true
          }
      }
      

      It looks fine with Qt 5.15.2:

      And wrong with Qt 6.2.0:

      Attachments

        1. Qt5_fonts.log
          86 kB
        2. Qt6_fonts.log
          190 kB
        3. screenshot-1.png
          screenshot-1.png
          0.8 kB
        4. screenshot-2.png
          screenshot-2.png
          0.8 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            studiosus Vladimir Belyavsky
            Votes:
            8 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes