You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to rotate a font loaded as a opentype font through the freetype plugin.
context.DrawString(drawFont, playerName, new Vector2(100, 100 ), Color.White,(float)Math.PI/2,new Vector2(0,0 ),1f,SpriteEffects.None,100f);
Produces a very wild movement of the text so it is no longer on screen, where if I understand origin that should be relative to the drawn text itself. If i move origin to 100,100 it produces the text half way off the edge of the screen
Swapping origin and position provides more the result i'd expect (if the items were unflipped), but the actual drawing seems broken with text overlapping and absolute position changing for the individual symbols.
vs
The text was updated successfully, but these errors were encountered:
fireball87
changed the title
Rotating truetype fonts provides unexpected results.
Rotating opentype fonts provides unexpected results.
Sep 9, 2021
I've been trying to rotate a font loaded as a opentype font through the freetype plugin.
Produces a very wild movement of the text so it is no longer on screen, where if I understand origin that should be relative to the drawn text itself. If i move origin to 100,100 it produces the text half way off the edge of the screen
Swapping origin and position provides more the result i'd expect (if the items were unflipped), but the actual drawing seems broken with text overlapping and absolute position changing for the individual symbols.
vs
The text was updated successfully, but these errors were encountered: