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

[REG 5.3.2 -> 5.4] Kerning broken, spaces between letters too big

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • None
    • 5.4.0
    • GUI: Font handling
    • None
    • Windows 7 64 bit
      MSVC 2010 32 bit

    Description

      Have a simple program showing some text:

      #include <QApplication>
      #include <QLabel>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
          QLabel l;
          // size doesn't matter, just makes it easier to see
          l.setText("<font size='7'>To</font>");
          l.show();
          return a.exec();
      }
      

      On Qt 5.3.2, it will look like this:

      On Qt 5.4.0, it will look like this instead:

      Note that the "o" is too far away from the "T".

      Kerning should be applied correctly. This worked in Qt 5.3.2.

      Attachments

        1. kerning_old-notepad.png
          kerning_old-notepad.png
          7 kB
        2. kerning_old-ng.png
          kerning_old-ng.png
          2 kB
        3. font540.png
          font540.png
          4 kB
        4. font532.png
          font532.png
          5 kB

        Issue Links

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

          Activity

            People

              ritt.ks Konstantin Ritt
              rlohning Robert Löhning
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes