Fix bidi reordering when part of text is rendered by fallback font
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Wed, 6 Jul 2011 09:44:57 +0000 (11:44 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 6 Jul 2011 11:29:44 +0000 (13:29 +0200)
commitfebb4b8df382352596ac814e9d69a4548c56208f
treef7335edf570a8a0af4a88a06e1fe8a126b889604
parent3422bc3b186a32ae985d3130090b71305380bbd6
Fix bidi reordering when part of text is rendered by fallback font

If the fallback font is used for part of a RTL text, we need to
position the different text items accordingly, subtracting the advance
instead of adding it.

Task-number: QTBUG-17117
Done-with: Lars
(cherry picked from commit e5e1ff0d6f4e6a8457da61b5b215730de6f960bd)

Change-Id: I73b501d36e5c9e12112cc1997c1d360f3a4a6083
Reviewed-on: http://codereview.qt.nokia.com/1228
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
src/gui/painting/qpainter.cpp