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

Inconsistencies when rendering condensed fonts on different platforms

XMLWordPrintable

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

      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.

        1. MacOS.png
          168 kB
          Eskil Abrahamsen Blomfeldt
        2. MacOSWithPatchForQTBUG63800.png
          167 kB
          Eskil Abrahamsen Blomfeldt
        3. qtbug68041.zip
          172 kB
          Eskil Abrahamsen Blomfeldt
        4. Ubuntu.png
          51 kB
          Eskil Abrahamsen Blomfeldt
        5. UbuntuWithPatchForQTBUG63800.png
          51 kB
          Eskil Abrahamsen Blomfeldt
        6. Windows.png
          97 kB
          Eskil Abrahamsen Blomfeldt
        7. WindowsFreetype.png
          138 kB
          Eskil Abrahamsen Blomfeldt
        8. WindowsFreetypeWithPatchForQTBUG63800.png
          137 kB
          Eskil Abrahamsen Blomfeldt
        9. WindowsWithPatchForQTBUG63800.png
          94 kB
          Eskil Abrahamsen Blomfeldt
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:

                There are no open Gerrit changes