Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.8.0, 5.10
-
None
-
Linux, QNX
-
9921b48c83490b450241d6c172f1375ab4efb6b1
Description
The following example creates separate distance field textures for each Text element:
import QtQuick 2.0 Item { width: 400 height: 400 Text { font.pixelSize: 24 text: "My Sample Text" } Text { font.pixelSize: 25 text: "My Sample Text" } }
Output is:
qt.scenegraph.time.glyph: distancefield: 11 glyphs prepared in 1ms, rendering=0, upload=1 qt.scenegraph.time.glyph: distancefield: 11 glyphs prepared in 0ms, rendering=0, upload=0
This appears to be due to changes to the cache key between 5.6 and 5.8 – using QRawFont directly rather than a custom QString key.
Attachments
For Gerrit Dashboard: QTBUG-60696 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
194092,2 | Ensure same glyph cache is used for same font at different sizes | 5.9.0 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
200706,2 | Ensure same glyph cache is used for same font at different sizes | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |