Use maximum ascent/descent/leading from fallback fonts in shaping
authorJiang Jiang <jiang.jiang@nokia.com>
Wed, 27 Apr 2011 14:05:09 +0000 (16:05 +0200)
committerJiang Jiang <jiang.jiang@nokia.com>
Fri, 29 Apr 2011 09:02:25 +0000 (11:02 +0200)
commit774527dd1e85da6ab91cba9b0e5897ba90f4c828
tree47a70bdf4ed617db024eb0f3a1ec23ce934f3d47
parentbbbfc9b0eb373054aa4df7928c6472acc8f49c81
Use maximum ascent/descent/leading from fallback fonts in shaping

When shaping a QScriptItem with a multi font engine, currently we
only take the ascent/descent/leading from the primary (first) font
engine in that multi font engine, however, subsequent engines used
during shaping may have larger ascent/descent/leading, disregarding
them may cause clipping issues in some cases.

It's fixed by checking each font engine used in the shaping process
and take the maximum value instead of the first one. On ATSUI we
merely make it compile.

Task-number: QTBUG-16719
Reviewed-by: Eskil
(cherry picked from commit c501403cb5a0c9ec21b00e0c2f640ae85566e0cf)
src/gui/text/qfontengine_coretext.mm
src/gui/text/qfontengine_coretext_p.h
src/gui/text/qfontengine_mac.mm
src/gui/text/qfontengine_mac_p.h
src/gui/text/qtextengine.cpp
src/gui/text/qtextengine_mac.cpp