words alignment in text is not good while drawing text by rotating the painter
-
Hi,
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:
painter.rotate(45);
painter.drawText(QRectF(x,y,DEFAULT_TRACK_LEN, HEIGHT),ZERO,m_TrackNotes.toUpper());
painter.resetTransform();
For output,See the image below.
However drawing text horizontally is good, See the Image:
Anyone help please.
-
@VRonin said in words alignment in text is not good while drawing text by rotating the painter:
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.
-
@VRonin
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.
Thanks