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

Roboto font used in Material style slows down startup time

    XMLWordPrintable

Details

    • macOS

    Description

      I have created a project with the template "Qt Quick Application - Empty" and added a qtquickcontrols2.conf file with the content:

      [Controls]
      Style=Material
      

      and modified the `main.qml` to

      import QtQuick 2.14
      import QtQuick.Controls 2.14
      ApplicationWindow {
           visible: true
           width: 640
           height: 480
           title: qsTr("Hello World")
           Button{ 
               text: "test"
           }
       }
      

      When I build and run this project I get the following output:
      qt.qpa.fonts: Populating font family aliases took 2240 ms. Replace uses of missing font family "Roboto" with one that exists to avoid this cost.

      Maybe related to: QTBUG-37165QTBUG-35704

      I think the font family should be shipped with Qt.

       

      Attachments

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            autoantwort autoantwort
            Votes:
            5 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated: