diff options
author | Yoann Lopes <yoann.lopes@nokia.com> | 2012-03-16 12:09:29 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-19 18:28:52 +0100 |
commit | b271abeaf11c9fe0a05d8405f03f6a20218214ed (patch) | |
tree | 6f63cbcc6acab91e4d804c718c003c2e189d3a7d /src/quick/scenegraph/util/qsgdistancefieldutil_p.h | |
parent | 3bf01de85d943432d66b5fa8048275817fd20020 (diff) |
Use a single distance-field cache instance for all sizes of a given font.
Previously we had a different cache instance for each font size, but
they all shared the same textures and positions. Only the glyph metrics
were specific to each font size.
The metrics for each font sizes are now calculated by scaling the metrics
of the distance-field size (54px).
Change-Id: I0d9016990dedd93318893506afb1dba7a5249e2e
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Diffstat (limited to 'src/quick/scenegraph/util/qsgdistancefieldutil_p.h')
-rw-r--r-- | src/quick/scenegraph/util/qsgdistancefieldutil_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/scenegraph/util/qsgdistancefieldutil_p.h b/src/quick/scenegraph/util/qsgdistancefieldutil_p.h index 49391a737c..b04b70e06f 100644 --- a/src/quick/scenegraph/util/qsgdistancefieldutil_p.h +++ b/src/quick/scenegraph/util/qsgdistancefieldutil_p.h @@ -73,7 +73,7 @@ public: void setAntialiasingSpreadFunc(AntialiasingSpreadFunc func) { m_antialiasingSpread_func = func; } private: - QHash<QFontEngine *, QSGDistanceFieldGlyphCache *> m_caches; + QHash<QString, QSGDistanceFieldGlyphCache *> m_caches; QSGContext *sgCtx; |