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

The error occurs when running with -platform cocoa:fontengine=freetype on macOS 15.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7.3, 6.8.0
    • GUI: Font handling
    • None
    • MacBook Air M2 macOS Sequoia
    • macOS

    Description

      Running with -platform cocoa:fontengine=freetype

       

      import QtQuick
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
          Text {
              anchors.horizontalCenter: parent.horizontalCenter
              text: "测试"
              font.pixelSize: 9
              font.weight: 400
              font.family: "PingFang SC"
          }
      }

      It worked fine on macOS 14, but after upgrading to macOS 15, errors started occurring. After my quick check, I found that the error does not occur when font.family is not specified, but it does occur when specifying font.family: "PingFang SC" (Note: PingFang SC is a native Chinese font included with macOS,specifying other fonts like Helvetica results in the same issue).This ultimately leads to font rendering errors in the application’s interface.

      After further testing, an error occurs when rendering Chinese font content.that even without using FreeType fonts, although the console does not report any errors, the rendering results are still abnormal and differ from the rendering on macOS 14.

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            stingko Sting ko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes