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

When the letter J is at the start of a TextField then it will cut off the beginning of the letter due to the negative left bearing

    XMLWordPrintable

Details

    • 1fcbe0f6c (dev), 8469b3692 (dev), 3f3f46d61 (6.6), e799b3de6 (6.6)
    • G&UI Finishing 2023

    Description

      When the letter J is at the start of a TextField then it will cut off the beginning of the letter due to the negative left bearing. This did not happen in Qt Quick Controls 1 in Qt 5.

      Attached is an example which shows this happening.

      import QtQuick
      import QtQuick.Controls
      import QtQuick.Window
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
          Rectangle {
              width : 640
              height: 480
              TextField {
                  id: textFieldId
                  height: parent.height
                  width: parent.width
                  font.pixelSize: 250
                  text: "‎jj"
                  font.family: "Helvetica"
                  leftPadding: 4
              }
          }
      }
      

      Attachments

        1. 516846-2-after.png
          516846-2-after.png
          7 kB
        2. 516846-2-before.png
          516846-2-before.png
          7 kB
        3. oob-glyphs.qml
          3 kB
        4. qtbug_113679_widgets.zip
          2 kB
        5. qtbug113679.zip
          2 kB
        6. screenshot-1.png
          screenshot-1.png
          2 kB
        7. screenshot-2.png
          screenshot-2.png
          16 kB
        8. textinput.qml
          0.4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            andysh Andy Shaw
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: