Introduce FontSmoothingGamma as a platform style hint.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Tue, 27 Mar 2012 06:30:47 +0000 (08:30 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 27 Mar 2012 10:33:42 +0000 (12:33 +0200)
commit4f92f9b7251addef556b25e8ab88e00acfaf61b0
treecadb3a0fe7e4c2564e609c3d27d2bc47be516029
parent8d28f263aa14cc450085c9df3623a483b6021c56
Introduce FontSmoothingGamma as a platform style hint.

- Allocate gamma tables on the heap in a thread-safe way, use
  font smoothing returned by the style hints of the platform to
  calculate them.
- Improve font rendering on Windows.

Change-Id: I8cd39b51cf03cbd642474c02b9076814baecd597
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
14 files changed:
src/gui/image/qimage.cpp
src/gui/kernel/qguiapplication.cpp
src/gui/kernel/qguiapplication_p.h
src/gui/kernel/qplatformintegration_qpa.cpp
src/gui/kernel/qplatformintegration_qpa.h
src/gui/kernel/qstylehints.cpp
src/gui/kernel/qstylehints.h
src/gui/painting/painting.pri
src/gui/painting/qdrawhelper.cpp
src/gui/painting/qdrawhelper_p.h
src/gui/painting/qgammatables.cpp [new file with mode: 0644]
src/plugins/platforms/windows/qwindowsfontdatabase.cpp
src/plugins/platforms/windows/qwindowsfontdatabase.h
src/plugins/platforms/windows/qwindowsintegration.cpp