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

QFont::exactMatch() returns false for installed fonts in Qt 5.15.1

    XMLWordPrintable

Details

    • Linux/X11
    • bdc9d272eebff66827b566b1b24b6697c797807a (qt/qtbase/dev) bc294899e588a743d96a0110f7575902c482a806 (qt/qtbase/5.15)

    Description

      QFont::exactMatch() returns false for every font I've tried, even if the font is retrieved from a QFontDatabase. See attached example using "DejaVu Sans". I've checked that this font family is listed when iterating over all fonts with QFontDatabase::families().

      This affects Qt 5.15.1 but not 5.9.6.

      I can reproduce this on Ubuntu 18.04 (Gnome + X11, also tried Wayland) and Arch Linux (KDE + X11).

       

      Attachments

        1. main.cpp
          0.5 kB
        2. fonts2.pro
          0.9 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            andysh Andy Shaw
            jleigh Jessica Leigh
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes