Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.12.3
-
None
Description
When painting with QPainter::drawText(), it seems that the colors are off if drawing with a color without any alpha while antialiasing (the parts of the drawn text which should be alpha blended seem wrong).
I'm attaching a sample program (using PySide2 as it's easier to prototype in Python to show the issue, but should be straightforward to port to C++).
The sample program creates 2 images, one with an alpha of 254 and another with a solid color (alpha=255)... and saves them to c:/temp, so, may need to be adjusted depending on the platform.
By zooming the image, it's possible to note that the areas where the alpha-blending should be done with the solid color the colors are weird (they seem to be close to pink/purple vs doing the proper alpha-blending as is the case when an alpha of 254 is used – I'm attaching the results I get on my machine).