Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rotating opentype fonts provides unexpected results. #144

Open
fireball87 opened this issue Sep 9, 2021 · 0 comments
Open

Rotating opentype fonts provides unexpected results. #144

fireball87 opened this issue Sep 9, 2021 · 0 comments

Comments

@fireball87
Copy link

fireball87 commented Sep 9, 2021

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.

image
vs
image

@fireball87 fireball87 changed the title Rotating truetype fonts provides unexpected results. Rotating opentype fonts provides unexpected results. Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant