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

Text rotation #24

Open
ArtDepartmentMJ opened this issue Feb 10, 2017 · 7 comments
Open

Text rotation #24

ArtDepartmentMJ opened this issue Feb 10, 2017 · 7 comments

Comments

@ArtDepartmentMJ
Copy link

Is it possible to set the text rotation?

@stil
Copy link
Owner

stil commented Feb 10, 2017

No, it would need some code changes. By default no rotation is set:
https://github.com/stil/gd-text/blob/master/src/Box.php#L402

@ArtDepartmentMJ
Copy link
Author

For my purposes it was pretty easy to just create a new transparent image for the text to sit on and then just rotate that on to the canvas.

@stil
Copy link
Owner

stil commented Feb 13, 2017

Was text quality affected after rotation of transparent layer? I might implement it in the library, because it's probably easiest way to do this. However I'm not sure how antialiasing interferes with rotations of already rasterized text.

@daidi
Copy link

daidi commented Oct 25, 2017

look forward to it

@daidi
Copy link

daidi commented Oct 25, 2017

it seems we can use $angle directly .
http://php.net/manual/zh/function.imagefttext.php

@AdamBissonnette
Copy link

AdamBissonnette commented Dec 4, 2017

Any updates on this? @daidi

@daidi
Copy link

daidi commented Jan 4, 2018

@mmanifesto see this #41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants