Fall back to using paths for large fonts in drawStaticText()
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Wed, 18 May 2011 13:10:40 +0000 (15:10 +0200)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Wed, 18 May 2011 13:57:38 +0000 (15:57 +0200)
commitf4c1c2f939e1cd6e08197284edb84b202cd6749e
tree985fe8d4d137f7f4e6c6951ae1b2c7cd45acea10
parente8c95790d9d03678f9c0d30a7cc7c2edec6eba81
Fall back to using paths for large fonts in drawStaticText()

QStaticText had an implicit risk which meant you had to make sure the
text size did not grow unreasonably large. This was intended to avoid
hiding the performance impact of using QStaticText for such a purpose,
but it's too inconvenient. Thus, the same fall back as in drawTextItem()
has been introduced. This will also fix a bug recently introduced when
we started using the FT cache to draw static text in the raster engine,
since this will fail for large fonts.

Task-number: QTBUG-19084, QTBUG-19370
Reviewed-by: Jiang Jiang
(cherry picked from commit 0aa9b30432cec3b7f366983f451fc9a7f8f83243)
src/gui/painting/qpaintengine_raster.cpp
src/gui/painting/qpaintengineex.cpp
src/gui/painting/qpaintengineex_p.h
src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp