Allow using multi fontengine in QTextLayout with QRawFont.
authorPierre Rossi <pierre.rossi@nokia.com>
Mon, 16 Jan 2012 16:40:21 +0000 (17:40 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 1 Mar 2012 14:47:24 +0000 (15:47 +0100)
commitcc78f47778de0feda95d7a85440d03ad7dcf40bd
tree9dd229f840ae887d2199bdf937a9371a8bfbfab7
parent10ac80708555cd0cca181e637d3a95c80826ec69
Allow using multi fontengine in QTextLayout with QRawFont.

This change enables us to instantiate a QFontEngineMulti that takes
the raw font's font engine as its primary engine but can use fallback
engines based on the platform. Since this can be quite expensive, we
defer the query for fallback families' names until it's needed and
we cache the resulting multi font engine.

Change-Id: I390dbc1cb2fe61d56867f29a03f313eb3eb49dc3
Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
src/gui/text/qfont.cpp
src/gui/text/qfont_p.h
src/gui/text/qfontdatabase.h
src/gui/text/qfontengine_p.h
src/gui/text/qfontengine_qpa.cpp
src/gui/text/qfontengine_qpa_p.h
src/gui/text/qtextengine.cpp