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

[REG: 5.15.4 -> 5.15.5]: Font weight is not rendered correctly for Roboto font loaded using QFontDatabase

    XMLWordPrintable

    Details

    • Platform/s:
      Windows

      Description

      The correct font weight is not rendered when loading the Roboto fonts from a QRC file using QFontDatabase and then displaying that text using a Text QML item. This was working fine in 5.15.4, but is now broken in 5.15.5 on Windows version 20H2.

      I have attached a simple QtQuick sample program to demonstrate the issue. All it does is load the Roboto fonts from a QRC file using QFontDatabase in main.cpp, output the loaded font families using QFontDatabase::applicationFontFamilies to ensure that the fonts were loaded correctly, display a simple QML file with two Text items both rendering Roboto font with one bold and the other regular weight, and then output the Text font family/weight/bold info once the Text items have completed creation. The output is identical on both 5.15.4 and 5.15.5 with both indicating that all fonts have loaded correctly and the Text item has the expected family/weight/bold info. However, on 5.15.5 the Text item with bold set to true is rendered as thin text even though everything indicates it should be bold. Please see the attached photos and sample application.

        Attachments

        1. FontTest.zip
          4.80 MB
        2. Roboto5154.png
          Roboto5154.png
          12 kB
        3. Roboto5155.png
          Roboto5155.png
          11 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            esabraha Eskil Abrahamsen Blomfeldt
            Reporter:
            bgarfinkel Brian Garfinkel
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes