
This example of code shows how to rotate the text correctly, the CreateFont function rotates the text around the text starting point, this code demonstrates rotating text around the text center point using CreateFont function and correcting the point to print the text and rotate
API DeclarationsTextOut,GetTextAlign,GetTextColor,SetTextAlign,SetTextColor,MulDiv,
GetDeviceCaps,GetTextExtentPoint32,CreateFont,SelectObject,DeleteObject.