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.5.6, 6.7.2, 6.8.0 RC
    • 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
      }

       

      In the two images above, the left one shows the result of a CoreText rendering error, and the right one shows the result of rendering with FreeType.

      (use

               font.variableAxes:

      {                 "FILL": 0,                 "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

        1. 1724018870303.jpg
          6 kB
          Sting ko
        2. 2321727291719_.pic.jpg
          5 kB
          Sting ko
        3. 8e5d0a2aadf5.jpg
          6 kB
          Sting ko
        4. image-2024-09-24-21-45-27-693.png
          11 kB
          Sting ko
        5. image-2024-09-24-21-45-36-235.png
          13 kB
          Sting ko
        6. image-2024-09-26-03-22-06-310.png
          5 kB
          Sting ko
        7. MaterialSymbolsOutlined[FILL,GRAD,opsz,wght].ttf
          8.38 MB
          Sting ko
        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