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

Incorrect tight bounding rect widths for macOS default fonts

XMLWordPrintable

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

      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.

        1. qtbug-101367.zip
          2 kB
          Niklas Wenzel
        2. screenshot.png
          193 kB
          Niklas Wenzel
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:

                There are no open Gerrit changes