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

Inconsistencies when rendering condensed fonts on different platforms

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.11.0 Beta 4
    • GUI: Text handling
    • None

    Description

      When rendering a condensed font and setting a stretch, the interpretation of this is different in different font engines.

      We decided on the following:
      A. If QFont::stretch() is set to 0 == AnyStretch (the default), then the stretch of the selected font will be used unmodified.
      B. If QFont::stretch() is set to the same stretch as the selected font then we will also just use the font unmodified.
      C. If QFont::stretch() is set to something else, then we will synthesize this based on the stretch of the selected font (so if QFont::stretch() returns 40 and the font is condensed at 80, then we will synthesize a stretch of 50)

      This currently works as expected in the Mac engine, but only when font merging is enabled.

      On Windows GDI, Windows DirectWrite and Freetype, it does not seem to work at all.

      Attachments

        1. WindowsWithPatchForQTBUG63800.png
          WindowsWithPatchForQTBUG63800.png
          94 kB
        2. WindowsFreetypeWithPatchForQTBUG63800.png
          WindowsFreetypeWithPatchForQTBUG63800.png
          137 kB
        3. WindowsFreetype.png
          WindowsFreetype.png
          138 kB
        4. Windows.png
          Windows.png
          97 kB
        5. UbuntuWithPatchForQTBUG63800.png
          UbuntuWithPatchForQTBUG63800.png
          51 kB
        6. Ubuntu.png
          Ubuntu.png
          51 kB
        7. qtbug68041.zip
          172 kB
        8. MacOSWithPatchForQTBUG63800.png
          MacOSWithPatchForQTBUG63800.png
          167 kB
        9. MacOS.png
          MacOS.png
          168 kB

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              esabraha Eskil Abrahamsen Blomfeldt
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes