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

QML renders condensed / extended font styles incorrectly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.2.3, 6.3.0 Beta2
    • GUI: Font handling
    • None
    • macOS 12.2.1
    • macOS

    Description

      QML renders the macOS system font "Skia" incorrectly in the attached example.

      The bug happens when loading two different styles of the font

      • with the same weight
      • but with different stretch values.

      The glyphs from the font style that is loaded first seem to be reused for all other font styles with the same weight. This kind of caching should not happen.

      Reproduction

      Example code attached. The screenshot was taken on vanilla Qt 6.2.3. The second screenshot is from Apple Pages and shows what the fonts should look like.

      Skia was preinstalled on my Mac. If Skia isn't installed on your Mac, open the preinstalled "Font Book" application, select "All fonts" in the sidebar and download Skia from the list.

      Attachments

        1. Screenshot.png
          Screenshot.png
          97 kB
        2. The fonts in Apple Pages.png
          The fonts in Apple Pages.png
          18 kB
        3. qtbug-101654.qml
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            nikwen Niklas Wenzel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes