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

Variable fonts similar to Google Material Icons render broken when using the default Cocoa CoreText backend, but render correctly when using FreeType.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7.2, 6.8.0 Beta3
    • GUI: Font handling
    • None
    • macOS 14.6.1 on MacBook Air M2
    • macOS

    Description

      Variable fonts similar to Google Material Icons render broken when using the default CoreText backend, but render correctly when using FreeType.

      This is a font file MaterialSymbolsOutlined[FILL,GRAD,opsz,wght].ttf provided by Google’s official GitHub repository. The variableAxes in the code looks like this:

      font.variableAxes: {
          "FILL": 1,
          "GRAD": 110,
          "opsz": 26
      }

      Additionally, I have recently discovered that when the value of FILL is set to 1, both font backends exhibit issues that do not meet expectations. With CoreText, the GRAD, opsz, and some other attributes differ from the standard implementation (resulting in distortions or partial effects). With FreeType, only the FILL attribute has issues.

      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