Add QGlyphRun::SplitLigature flag
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Wed, 12 Oct 2011 06:25:45 +0000 (08:25 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 14 Oct 2011 21:39:46 +0000 (23:39 +0200)
commit23e559473594b4d671405923ecd07d0f04047239
tree4b9ff0e46dc00adf9b2999a784b47a2c729dd1cc
parentb2a45e02a23fcbc9db29d700e2abaf627a1fdedf
Add QGlyphRun::SplitLigature flag

If the glyph run is generated based on characters which split a
ligature glyph, it needs to include the ligature glyph in the run,
and when painting, we need to clip the painter to the reported
bounding rect of the run in order to avoid painting too much of
the ligature. To make it possible to reduce clipping to a
minimum, we need a flag to inform of whether the glyph run contains
a split ligature or not.

Change-Id: Id787e0bec6d6e8e06cc818700ae0fca22cf81e98
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
src/gui/text/qglyphrun.cpp
src/gui/text/qglyphrun.h
src/gui/text/qtextlayout.cpp