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

Text in QLabel with italic font and AlignRight is cut off

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P2: Important
    • None
    • 5.6.0, 5.7.0, 5.9.1
    • GUI: Font handling
    • Windows 7 and Windows 10 64bit, Ubuntu 16, Debian 8.

    Description

      A QLabel with alignment "AlignRight" and a font in "Italic" is always cut off on the right side of the QLabel.

      This can not be mitigated by

      • resizing the QLabel
      • setting margin or padding.

      All fonts seem to be affected, some more than others.
      Good examples include Source Sans Pro, Times New Roman and Arial.

      A minimal example reproducing the issue is attached.

      Picture 1 shows the issue with Source Sans Pro, Picture 2 with Arial in a direct comparison to the unclipped character.

      Attachments

        1. aaa.png
          aaa.png
          12 kB
        2. italic.qml
          0.3 kB
        3. ItalicFontBug-MinimalExample.zip
          2 kB
        4. openMittsuBugSmall1.jpg
          openMittsuBugSmall1.jpg
          16 kB
        5. openMittsuBugSmall2.jpg
          openMittsuBugSmall2.jpg
          7 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            phiber Philipp Berger
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes