php gdlib angle problem

Posted by creativz on Stack Overflow See other posts from Stack Overflow or by creativz
Published on 2010-05-02T10:58:35Z Indexed on 2010/05/02 11:07 UTC
Read the original article Hit count: 343

Filed under:
|
|
|

I'm using php gd lib 5.2.13 and tried to make a picture with imagettftext ($image, $color and $font are defined of course).

imagettftext($image, 12, 90, 10, 20, $black, $font, "This.is_a test 123");
//image, font size, angle, x value, y value, color, font, text

As you can see I want the angle to be 90°. The problem is that the text is not beeing rotated properly, e.g. the dots are at the top (and not at the bottom) of the text. I read that this is a common issue and has been fixed in php gdlib 5.3, But since I have 5.2.13 running on a webhost (...) is there a solution to rotate it properly with using gdlib 5.2.13? Thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about gdlib