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

[REG] macOS: Font weight ignored when font family does not exist

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Won't Do
    • Affects Version/s: 5.13.2
    • Fix Version/s: None
    • Component/s: GUI: Font handling
    • Labels:
      None
    • Platform/s:
      macOS

      Description

      Bold and other font weights will show up as regular if the font family is not found in the system.

      Text {
              id: t
              font.family: "NotAFont"
              anchors.centerIn: parent
              text: "foobar"
              font.bold: true
          }
      

      The text here will not be bold, but removing the "font.family" line (or replacing it with a font family that exists) will fix it.

      This seems to be related to c9eff4.

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-79669
          # Subject Branch Project Status CR V

            Activity

              People

              • Assignee:
                esabraha Eskil Abrahamsen Blomfeldt
                Reporter:
                esabraha Eskil Abrahamsen Blomfeldt
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There is 1 open Gerrit change