Text rendering

Hi List,

today i committed a change making the textrenderer use a gamma-correction to
get nicer-looking text.

However it just occured to me that I only tested it on X11. On Mac, the text
already looks a bit like that by default, so it could very well be that my
change is undesirable on Mac. Can any Mac users report?

It’s perfectly possible to have two different paths for X11 and Mac. The line
is textrenderer.cpp:193. Feel free to replace the current

    double y = sqrt(x);

with something like

#ifdef Q_WS_X11 // or perhaps #ifndef Q_WS_MAC
double y = sqrt(x);
#else
double y = x; // no gamma correction
#endif

Cheers,

Benoit

Hi List,

today i committed a change making the textrenderer use a gamma-correction to
get nicer-looking text.

However it just occured to me that I only tested it on X11. On Mac, the text
already looks a bit like that by default, so it could very well be that my
change is undesirable on Mac. Can any Mac users report?

It’s perfectly possible to have two different paths for X11 and Mac. The line
is textrenderer.cpp:193. Feel free to replace the current

    double y = sqrt(x);

with something like

#ifdef Q_WS_X11 // or perhaps #ifndef Q_WS_MAC
double y = sqrt(x);
#else
double y = x; // no gamma correction
#endif

Cheers,

Benoit