words alignment in text is not good while drawing text by rotating the painter
I am drawing text by rotating the painter to 45 degree or any. Then the text alignment is not good.
I am using following code:
For output,See the image below.
However drawing text horizontally is good, See the Image:
Anyone help please.
I'm not sure I see what the problem is. I can however propose the alternative of printing with the non-rotated painter on a transparent
QPixmapinstead of directly on screen and then use
drawPixmapwith a rotated painter to put it on screen.
I'm not sure I see what the problem is
I think it's about the "s" characters, they fall quite visibly below the line of text.
Compare the letters alignment of the text in rotated painter and non-rotated painter. You will see some letters are down and some letters are up in the rotated painter text.
However, I will try the alternative suggested.