Go to file
Eskil Abrahamsen Blomfeldt e443d88501 Support gamma correction of text on GL
If the SRGB framebuffer extension in GL is available, we can support
gamma correction of text with a gamma of 2.1. On Mac this is
sufficient for gamma correcting subpixel antialiased text. Gray
antialiasing should not be gamma corrected on Mac.

On Windows, the user can potentially set the gamma value to anything
between 1.0 and 2.2 (or something like that). We support anything
that resembles 1.0 closely enough by pushing the text out without
any correction (like before). We also support anything that resembles
2.1 (the gamma hardcoded in GL's SRGB extension) by turning on the
extension before blending the text. In between the two, we'll use
gray antialiasing to avoid differing too much from the raster engine
(which is our reference in this.)

For gray antialiasing on Windows, we use a constant gamma of 2.3 which
has been determined by experimentation. Since this is close enough to
2.1 we do gamma correction with SRGB extension.

The distance limit of 0.2 is determined by some experimentation.

Reviewed-by: Samuel
(cherry picked from commit 79ba7cceca5e4029876ace2121edd25b08ae14ce)
2011-05-03 16:50:01 +02:00
bin Introduced the QT.<module>.plugins variable to module profiles. 2011-04-27 12:06:02 +02:00
config.profiles Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
config.tests Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
demos Removed examples and demos that are no longer in qtbase. 2011-04-27 12:06:02 +02:00
dist Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
doc/src Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
examples Removed examples and demos that are no longer in qtbase. 2011-04-27 12:06:02 +02:00
lib Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mkspecs QT += declarative implies += opengl too, so hardcode it to make stuff work 2011-04-28 15:07:51 +02:00
qmake Make qmake respect <subdir>.CONFIG = no_default_install 2011-04-27 12:05:58 +02:00
src Support gamma correction of text on GL 2011-05-03 16:50:01 +02:00
tests Make pixel size a qreal in QRawFont 2011-05-02 10:13:32 +02:00
tools Remove hardcoded modules in configure and QT_CONFIG 2011-04-27 12:05:53 +02:00
util Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
.gitignore Add .gitignore to each module 2011-04-27 12:06:07 +02:00
configure Turn on HarfBuzz support for Mac/Cocoa 2011-04-29 11:02:23 +02:00
configure.exe New configure.exe binary 2011-04-27 12:05:53 +02:00
header.BSD Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
header.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
header.LGPL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
header.LGPL-ONLY Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
INSTALL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LGPL_EXCEPTION.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.LGPL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.PREVIEW.COMMERCIAL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
qtbase.pro Fixed "make check" target for qtbase. 2011-04-27 12:06:00 +02:00
sync.profile Move uitools from QtTools to QtBase 2011-04-27 12:05:52 +02:00