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

Incorrect tight bounding rect widths for macOS default fonts

    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 tight bounding rect widths for various macOS default fonts.

      It often leaves padding to the left or to the right which should not exist for tight bounding rects.

      Reproduction

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

      The example application uses the following fonts:

      • SignPainter
      • Apple Chancery
      • Herculanum
      • Snell Roundhand
      • Savoye LET
      • Zapfino
      • Corsiva Hebrew

      These were preinstalled on my Mac.

      If one of them isn’t installed on your Mac, open the preinstalled "Font Book" application, select "All fonts" in the sidebar and download the missing fonts from the list.

      Attachments

        1. screenshot.png
          screenshot.png
          193 kB
        2. qtbug-101367.zip
          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