gd-text icon indicating copy to clipboard operation
gd-text copied to clipboard

Text rotation

Open ArtDepartmentMJ opened this issue 8 years ago • 7 comments

Is it possible to set the text rotation?

ArtDepartmentMJ avatar Feb 10 '17 13:02 ArtDepartmentMJ

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

stil avatar Feb 10 '17 13:02 stil

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.

ArtDepartmentMJ avatar Feb 13 '17 11:02 ArtDepartmentMJ

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.

stil avatar Feb 13 '17 15:02 stil

look forward to it

daidi avatar Oct 25 '17 08:10 daidi

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

daidi avatar Oct 25 '17 08:10 daidi

Any updates on this? @daidi

AdamBissonnette avatar Dec 04 '17 02:12 AdamBissonnette

@MManifesto see this #41

daidi avatar Jan 04 '18 04:01 daidi