diff options
author | Jiang Jiang <jiang.jiang@nokia.com> | 2011-07-08 15:40:43 (GMT) |
---|---|---|
committer | Jiang Jiang <jiang.jiang@nokia.com> | 2011-07-11 11:37:20 (GMT) |
commit | 0b996f435fb0da42e4f563986ef8214d542398f4 (patch) | |
tree | 074a79120d72b7a7a77962a56f5d3b5df884a610 /src/xmlpatterns/.gitignore | |
parent | e5e1ff0d6f4e6a8457da61b5b215730de6f960bd (diff) | |
download | Qt-0b996f435fb0da42e4f563986ef8214d542398f4.zip Qt-0b996f435fb0da42e4f563986ef8214d542398f4.tar.gz Qt-0b996f435fb0da42e4f563986ef8214d542398f4.tar.bz2 |
Fix crash when app font is added
Loading app fonts will clear the application font cache, but
QFontPrivate::engineWithScript will try to load the font again,
in Mac the font engine used here must be the one used for shaping,
because subsequent sub font engines may be added to it during the
shaping process (QCoreTextFontEngineMulti::stringToCMap). That is
why we need to fetch the font engine directly from QTextEngine's
fontEngine cache instead of QFontCache.
Task-number: QTBUG-20250
Reviewed-by: Eskil
(cherry picked from commit 1f90ae36cff8acf581d1624bf011fe3a55c623c0)
Diffstat (limited to 'src/xmlpatterns/.gitignore')
0 files changed, 0 insertions, 0 deletions