FontStashSharp / FontStashSharp

C# port of https://github.com/memononen/fontstash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Text rotation around origin seems to be different in latest version from 1.0.7

Beyley opened this issue · comments

Im updating my project from FSS 1.0.7 to 1.1.3, and it after fixing the interface to not have rot origin, it seems to act differently, going from
https://cdn.discordapp.com/attachments/521092043288608781/984911103156945006/smoothness.mp4
to
a

(font difference is unrelated)

Origin = (-50,-50), scale = 1.0
1.1.3
testoutput
1.0.7
testoutput

Origin = (-50,-50), scale = 2.0
1.1.3
testoutput
1.0.7
testoutput

Well, the reference behavior for the origin/rotation isnt 1.0.7, but MonoGame's SpriteFont.
Check sample RotatingText. I've updated it so it renders text using both FontStashSharp and MonoGame's SpriteFont. The behavior seems similar.
image

If you still need 1.0.7 behavior, I'd recommend downgrading to FontStashSharp 1.1.0.

I ended up spending a day or 2 rewriting to match the new system