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

Inconsistencies when rendering condensed fonts on different platforms

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.11.0 Beta 4
    • Fix Version/s: None
    • Component/s: GUI: Text handling
    • Labels:
      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. MacOS.png
          MacOS.png
          168 kB
        2. MacOSWithPatchForQTBUG63800.png
          MacOSWithPatchForQTBUG63800.png
          167 kB
        3. qtbug68041.zip
          172 kB
        4. Ubuntu.png
          Ubuntu.png
          51 kB
        5. UbuntuWithPatchForQTBUG63800.png
          UbuntuWithPatchForQTBUG63800.png
          51 kB
        6. Windows.png
          Windows.png
          97 kB
        7. WindowsFreetype.png
          WindowsFreetype.png
          138 kB
        8. WindowsFreetypeWithPatchForQTBUG63800.png
          WindowsFreetypeWithPatchForQTBUG63800.png
          137 kB
        9. WindowsWithPatchForQTBUG63800.png
          WindowsWithPatchForQTBUG63800.png
          94 kB

          Issue Links

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

            Activity

              People

              Assignee:
              esabraha Eskil Abrahamsen Blomfeldt
              Reporter:
              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