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

Text vertical alignment is wrong when lineHeight is set with some non latin characters

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.2, 6.0.0
    • Quick: Other
    • None
    • Debian Buster
      Arch Linux
    • Linux/X11

    Description

      In QML when using a Text item with:

      • lineHeight is set
      • The text contains some non-latin characters
      • verticalAlignment is set to something else than Qt.AlignTop

      Then the actual text rendering does not respect the alignment and can even render outside of the Text item.

      I have tested with Qt 5.15.2 and 6.0.0 official builds and with Qt 5.15.2 provided by Arch Linux package manager.

      Screenshots

      Latin text

      Burmese text

      Arabic text

      Attachments

        1. demo_text_align.zip
          2 kB
          Benjamin Terrier
        2. image-2020-12-18-11-37-28-393.png
          37 kB
          Benjamin Terrier
        3. image-2020-12-18-11-38-02-016.png
          39 kB
          Benjamin Terrier
        4. image-2020-12-18-11-39-26-973.png
          35 kB
          Benjamin Terrier
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            bterrier Benjamin Terrier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes