diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2011-10-12 08:25:45 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-14 23:39:46 +0200 |
commit | 23e559473594b4d671405923ecd07d0f04047239 (patch) | |
tree | 4b9ff0e46dc00adf9b2999a784b47a2c729dd1cc /src/gui/text/qglyphrun.h | |
parent | b2a45e02a23fcbc9db29d700e2abaf627a1fdedf (diff) |
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>
Diffstat (limited to 'src/gui/text/qglyphrun.h')
-rw-r--r-- | src/gui/text/qglyphrun.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/text/qglyphrun.h b/src/gui/text/qglyphrun.h index 5a55eacbcb..22fb5ff395 100644 --- a/src/gui/text/qglyphrun.h +++ b/src/gui/text/qglyphrun.h @@ -60,10 +60,11 @@ class Q_GUI_EXPORT QGlyphRun { public: enum GlyphRunFlag { - Overline = 0x1, - Underline = 0x2, - StrikeOut = 0x4, - RightToLeft = 0x8 + Overline = 0x01, + Underline = 0x02, + StrikeOut = 0x04, + RightToLeft = 0x08, + SplitLigature = 0x10, }; Q_DECLARE_FLAGS(GlyphRunFlags, GlyphRunFlag) |