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

Incorrect bounding rect widths for ligatures of font "Zapfino"

    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

      Qt returns incorrect bounding rects and tight bounding rects for ligatures of the macOS default font "Zapfino".

      In the attached screenshot, bounding rects are yellow, tight bounding rects are orange.

      All of them are far too wide.

      This causes issues when trying to center this text as it never ends up visually centered.

      Reproduction

      Source code attached. The screenshot was taken on Qt 6.3.0 Beta 2.

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

      Attachments

        1. Bounding rect in Apple Pages.png
          Bounding rect in Apple Pages.png
          107 kB
        2. qtbug-101363.zip
          2 kB
        3. screenshot.png
          screenshot.png
          194 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:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes