summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qfontdatabase.h
diff options
context:
space:
mode:
authorJiang Jiang <jiang.jiang@nokia.com>2011-10-18 15:11:07 +0200
committerQt by Nokia <qt-info@nokia.com>2011-10-24 11:04:04 +0200
commit8c13b6b21fcf71893c1cf24c05dd4a576ee43490 (patch)
tree6bbca0299b2fe69bb7da210b9059bf1ff01e0e1a /src/gui/text/qfontdatabase.h
parent31d6ac13867957218fc9a974518b80e3e2d4742b (diff)
Keep Multi font engine in QFontCache
If we only keep single QFontEngineFT in QFontCache, then when we are looking for the MultiQPA next time with the same QFontDef, the FT engine will be returned and we get no font fallback support. That's why we need to keep the Multi engines in QFontCache as well and distinguish them from the single item. Since QPA doesn't use 'screen' field of QFontCache::Key structure, we use it here to indicate that we are caching a multi font engine. Change-Id: Id899d5c5ba52f4bccf134bcd6b1c6386ba22063c Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Diffstat (limited to 'src/gui/text/qfontdatabase.h')
-rw-r--r--src/gui/text/qfontdatabase.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qfontdatabase.h b/src/gui/text/qfontdatabase.h
index 6e0550334f..873d00946c 100644
--- a/src/gui/text/qfontdatabase.h
+++ b/src/gui/text/qfontdatabase.h
@@ -153,7 +153,7 @@ private:
static void createDatabase();
static void parseFontName(const QString &name, QString &foundry, QString &family);
static QString resolveFontFamilyAlias(const QString &family);
- static QFontEngine *findFont(int script, const QFontPrivate *fp, const QFontDef &request);
+ static QFontEngine *findFont(int script, const QFontPrivate *fp, const QFontDef &request, bool multi = false);
static void load(const QFontPrivate *d, int script);
friend struct QFontDef;