Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QFontEngineFT glyph problem
Forum Update on Monday, May 27th 2025

QFontEngineFT glyph problem

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Grey DeMonstr
    wrote on last edited by Grey DeMonstr
    #1

    Hello. My application has the following issue: it reads the external font files tens thousands times a minute. I'm using Qt 5.6.1, so I've checked bugtracker and backported the https://bugreports.qt.io/browse/QTBUG-49452 fix from Qt 5.6.2 branch. That helped a lot, but really not fully. Now font files are read about a one thousand times per minute.
    Looks like glyphs are going to cache but still re-read every time.

    QFontEngineFT::Glyph *QFontEngineFT::loadGlyphFor(...)
    {
    ...
        Glyph *glyph = glyphSet != 0 ? glyphSet->getGlyph(g, subPixelPosition) : 0;
        if (!glyph || glyph->format != format || (!fetchBoundingBox && !glyph->data)) {
           ...
            glyph = loadGlyph(glyphSet, g, subPixelPosition, format, false);
          ...
        }
        return glyph;
    }
    

    Reason is glyph->data is null at all times, so QTBUG-49452 fix checks it and returns NULLPTR, but on the next pass we are loading this glyph again and again.
    What check or QFontCache improvement will be the best in this case?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      I'd recommend bringing this question on the interest mailing list. You'll find there Qt's developers/maintainers. This forum is more user oriented.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      G 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        I'd recommend bringing this question on the interest mailing list. You'll find there Qt's developers/maintainers. This forum is more user oriented.

        G Offline
        G Offline
        Grey DeMonstr
        wrote on last edited by
        #3

        @SGaist nobody have responded to me there :(

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Be a bit patient, it's the end of the year so there are many people going on vacation.

          If you still don't have an answer in a couple of days, you can ping.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved