shapeTextWithHarfbuzz() minor optimization
authorKonstantin Ritt <ritt.ks@gmail.com>
Mon, 2 Jul 2012 15:15:56 +0000 (18:15 +0300)
committerQt by Nokia <qt-info@nokia.com>
Mon, 2 Jul 2012 22:44:15 +0000 (00:44 +0200)
commitfa00407acf2a87ecf920ab620ade31102287092a
treea99bd599ecb62a1a854a4b537a29994325776b89
parentca456f34b0a7c6229f43bb932b3aaa2d15ce8740
shapeTextWithHarfbuzz() minor optimization

If the used font engine is of type QFontEngine::Multi, then we already have
both the "font engine runs" and the stripped glyph indicies for the kerning
-> just call the actual font engine's doKerning() method.
If the font engine is not of type QFontEngine::Multi, then we could safely
avoid the glyph indicies extra manipulations.

Change-Id: Ia8899e6d7beecfd391b050683ac41c21465336e4
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
src/gui/text/qtextengine.cpp