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

Memory usage higher with DirectWrite font database

XMLWordPrintable

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

      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();
          }
      

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

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

              Created:
              Updated:

                There are no open Gerrit changes