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

QApplication::setFont: Family name is too long

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.15.1
    • GUI: Font handling
    • None
    • Windows

    Description

      I'm setting a custom font in my application using QApplication::setFont in main():

      {{ QFont font("qrc:/fonts/Sansation_Regular.ttf");}}
      {{ app.setFont(font);}}

      When running this on windows, I get the following error:

      fontDefToLOGFONT: Family name 'qrc:/fonts/Sansation_Regular.ttf' is too long.

      Linux/Android/iOS have no complaints.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            holgergerth Holger Gerth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes