<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[QFontEngineFT glyph problem]]></title><description><![CDATA[<p dir="auto">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 <a href="https://bugreports.qt.io/browse/QTBUG-49452" target="_blank" rel="noopener noreferrer nofollow ugc">https://bugreports.qt.io/browse/QTBUG-49452</a> 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.<br />
Looks like glyphs are going to cache but still re-read every time.</p>
<pre><code>QFontEngineFT::Glyph *QFontEngineFT::loadGlyphFor(...)
{
...
    Glyph *glyph = glyphSet != 0 ? glyphSet-&gt;getGlyph(g, subPixelPosition) : 0;
    if (!glyph || glyph-&gt;format != format || (!fetchBoundingBox &amp;&amp; !glyph-&gt;data)) {
       ...
        glyph = loadGlyph(glyphSet, g, subPixelPosition, format, false);
      ...
    }
    return glyph;
}
</code></pre>
<p dir="auto">Reason is glyph-&gt;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.<br />
What check or QFontCache improvement will be the best in this case?</p>
]]></description><link>https://forum.qt.io/topic/74356/qfontengineft-glyph-problem</link><generator>RSS for Node</generator><lastBuildDate>Fri, 07 Aug 2026 19:40:04 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/74356.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 16 Dec 2016 09:07:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QFontEngineFT glyph problem on Fri, 23 Dec 2016 20:59:15 GMT]]></title><description><![CDATA[<p dir="auto">Be a bit patient, it's the end of the year so there are many people going on vacation.</p>
<p dir="auto">If you still don't have an answer in a couple of days, you can ping.</p>
]]></description><link>https://forum.qt.io/post/365961</link><guid isPermaLink="true">https://forum.qt.io/post/365961</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Fri, 23 Dec 2016 20:59:15 GMT</pubDate></item><item><title><![CDATA[Reply to QFontEngineFT glyph problem on Fri, 23 Dec 2016 08:54:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> nobody have responded to me there :(</p>
]]></description><link>https://forum.qt.io/post/365894</link><guid isPermaLink="true">https://forum.qt.io/post/365894</guid><dc:creator><![CDATA[Grey DeMonstr]]></dc:creator><pubDate>Fri, 23 Dec 2016 08:54:33 GMT</pubDate></item><item><title><![CDATA[Reply to QFontEngineFT glyph problem on Fri, 16 Dec 2016 22:50:45 GMT]]></title><description><![CDATA[<p dir="auto">Hi and welcome to devnet,</p>
<p dir="auto">I'd recommend bringing this question on the <a href="http://lists.qt-project.org/mailman/listinfo/interest" target="_blank" rel="noopener noreferrer nofollow ugc">interest mailing list</a>. You'll find there Qt's developers/maintainers. This forum is more user oriented.</p>
]]></description><link>https://forum.qt.io/post/364897</link><guid isPermaLink="true">https://forum.qt.io/post/364897</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Fri, 16 Dec 2016 22:50:45 GMT</pubDate></item></channel></rss>