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

Fonts display with incorrect weights in macOS 10.14 Mojave

    XMLWordPrintable

    Details

    • Platform/s:
      macOS
    • Commits:
      9601ad4e27d0e0a846ff13a1e7dbadd7afd260f5

      Description

      Please look at the screenshot below: Qt's textedit example application, built on stock Qt 5.11.1 is shown on the left, and the built-in Apple-provided TextEdit is shown on the right, running in macOS 10.14 Mojave Developer Beta 7:

      As you can see, Qt is selecting the wrong font when determining whether to use a Regular or Bold weight.

      The first four lines use the system-provided Arial font: Qt is choosing the Regular weight when requesting a Bold weight.

      The second four lines use the attached Academico font family (these fonts are licensed under the SIL Open Font License). Qt is choosing the Bold weight when requesting the Regular weight, and the Regular weight when requesting the Bold weight.

      This is a critical issue for our application, which is completely reliant on the appropriate choice of font.

        Attachments

        1. Academico.zip
          154 kB
        2. CFNumTest.zip
          5 kB
        3. font-weight-mojave.diff
          1 kB
        4. qt-text-edit-vs-cocoa-textedit.png
          qt-text-edit-vs-cocoa-textedit.png
          133 kB

          Issue Links

          For Gerrit Dashboard: QTBUG-69955
          # Subject Branch Project Status CR V

            Activity

              People

              • Assignee:
                esabraha Eskil Abrahamsen Blomfeldt
                Reporter:
                dspreadbury Daniel Spreadbury
              • Votes:
                10 Vote for this issue
                Watchers:
                20 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes