Let’s say I have a box that’s rotated 45 degrees and I want this text to align with the rotation.
Let’s assume I drawn a path, that forms a rotated rectangle by 45 degrees. I know x,y of Top-Left coordinate and width, height for the rectangle. Now, I’d like to draw a text inside it, so that the text is also rotated by 45 degrees, at specific x, y coordinates.
Found a way, using basic transformation method, such as