Another ugly hack to make bidi cursor work with Core Text
authorJiang Jiang <jiang.jiang@nokia.com>
Wed, 27 Apr 2011 09:39:09 +0000 (11:39 +0200)
committerJiang Jiang <jiang.jiang@nokia.com>
Fri, 29 Apr 2011 09:02:24 +0000 (11:02 +0200)
commitbbbfc9b0eb373054aa4df7928c6472acc8f49c81
tree0c82acba786e2b07e15957a207b888495bb0085d
parentd64460fffb488eb2e7b90df58d3891338bad7948
Another ugly hack to make bidi cursor work with Core Text

If the text is wrapped with LRE/LRO/RLE/RLO override/embed marks,
Core Text in Mac OS X 10.5 doesn't produce an empty glyph at the
beginning of the glyphs (while it does in Mac OS X 10.6), thus
we need to prepend an empty glyph here, otherwise cursor position
calculation will consider the first two characters as a ligature
of the same glyph.

Reviewed-by: Eskil
(cherry picked from commit a36ac6c34bafa801c2c30d76f59e4a3594efc4d5)
src/gui/text/qfontengine_coretext.mm
tests/auto/qcomplextext/tst_qcomplextext.cpp