Thanks Jesper for taking a look at my question.
I should have said "at the given coordinate" instead of "the desired place". If you run the above code and take a look at the saved PNG file, you will see two "A"s printed on that image. Both of them are printed at (800, 370) coordinate. My issue is related to the rotated
string "A".
Let me walk through some lines of the code above and explain you the issue.
The following two lines create a font with font size 100.0 and bold style.
Here I am creating an affinetransform object with the rotation angle and then applying it to a new font.
And then with the following two lines, I am drawing the text "A" at the coordinate (800,370). The text "A" is rotated A on the image.
Issue:
The rotated text "A" is not getting printed at (800,370) coordinate when I set the font size value greater than 100.0 at the line "font = font.deriveFont(1,(float)
101.0)" above. Please note that if the font size value is less than or equal to 100.0, then the text "A" is getting printed at the (800,370) coordinate.
Now what I want to understand here is why the rotated "A" doesn't get printed at the coordinate (800,370) when the value of the font size is greater than 100.0?