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

Memory usage higher with DirectWrite font database

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8.0
    • GUI: Font handling
    • None
    • Windows

    Description

      The DirectWrite font database seems to be storing more memory per resolved font than the GDI engine. For an application that resolves all fonts (e.g. to show a font combo box) this can cause a noticeable increase in memory footprint.

      The following loop to resolve all fonts on the system causes a memory footprint of 28 MB for me with DirectWrite, versus 16 MB with GDI:

          for (int i = 0; i < QFontDatabase::families().size(); ++i) {
              QFontInfo fi(QFont(QFontDatabase::families().at(i)));
              fi.family();
          }
      

      Attachments

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              esabraha Eskil Abrahamsen Blomfeldt
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes