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

FontLoaded loads same font several times

    XMLWordPrintable

Details

    Description

      If you use the FontLoader element several times with the same font, memory usage increases notably.

      For example create a component:

      1. PrimaryText.qml
        Text {
        FontLoader { id: myfont; source: "/fonts/myfont.ttf"}

        font.family: myfont.name
        font.pixelSize: 26
        }

      Then use that component as a replacement for the Text element. Each time it's used, memory consumption increases. Tested with top on Linux.

      Attachments

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

        Activity

          People

            martjone Martin Jones (closed Nokia identity) (Inactive)
            conny Cornelius Hald
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes