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

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

    XMLWordPrintable

    Details

    • Platform/s:
      Linux/X11
    • Commits:
      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. fonts2.pro
          0.9 kB
        2. main.cpp
          0.5 kB
        For Gerrit Dashboard: QTBUG-87267
        # Subject Branch Project Status CR V

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes