Disable GSUB feature when text contains surrogates
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Tue, 22 May 2012 10:29:54 +0000 (12:29 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 29 May 2012 09:35:21 +0000 (11:35 +0200)
commit2e6b8b4734710377e25c199e3ff7865628e7d723
treeb522833ac2c49f59121b29407cc39a2187ae1020
parent291b05e4b209b79798a0f5615b50c1393fcf0961
Disable GSUB feature when text contains surrogates

This is a work-around for a feature missing in Harfbuzz that
can make a text run that contains a surrogate and a ligature
crash. This will potentially cause the ligatures to break up
if you combine them with a surrogate, causing visual changes
to the text, but the scripts that require GSUB should not be
affected by this, since they will not use surrogates. Still,
it's not a permanent fix, but will serve as a bandaid for the
crash until the underlying problem has been fixed.

Task-number: QTBUG-22275
Change-Id: I90c37fba76bc7d1f369f3afddd1bd0dc306f5750
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
src/3rdparty/harfbuzz/src/harfbuzz-shaper.cpp