By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,036 Members | 1,047 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,036 IT Pros & Developers. It's quick & easy.

imagettftext problem with angle

P: n/a
Hello !

Here is my problem :

I had some php scripts which worked well with php 4.0.5 (GD 1.6.2
according to phpinfo() ) and i put them on a new server with php 4.4.2
(and GD 2.0.28). Now, they don't do what they should :

i'm generating an image with text written with an angle : imagettftext
used

on the new server, the text has the good angle, but letters inside the
text are rotated with double this angle : for instance, with an angle
of 90 degrees, the text is written bottom to top (like it should), but
letters are rotated with a 180° angle
i'm sorry if it's something known / corrected already, but I haven't
found anything about this yet

In the worst case, i'll probably do my own function to write the text
letter by letter, but i prefered posting here before

Thanks

PS : btw, it seems imagettfbbox gives the rectangle that would be used
on a rotated text without this problem, so it may come from
imagettftext

Feb 1 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"Doraj" <do****@gmail.comwrote in message
news:11*********************@v45g2000cwv.googlegro ups.com...
Hello !
>
Here is my problem :

I had some php scripts which worked well with php 4.0.5 (GD 1.6.2
according to phpinfo() ) and i put them on a new server with php 4.4.2
(and GD 2.0.28). Now, they don't do what they should :

i'm generating an image with text written with an angle : imagettftext
used

on the new server, the text has the good angle, but letters inside the
text are rotated with double this angle : for instance, with an angle
of 90 degrees, the text is written bottom to top (like it should), but
letters are rotated with a 180° angle
i'm sorry if it's something known / corrected already, but I haven't
found anything about this yet
It seems that this bug: http://bugs.php.net/bug.php?id=25398

--
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
http://outolempi.net/ahdistus/ - Satunnaisesti päivittyvä nettisarjis
sp**@outolempi.net | rot13(xv***@bhgbyrzcv.arg)

Feb 1 '07 #2

P: n/a
i'm sorry if it's something known / corrected already, but I haven't
found anything about this yet

It seems that this bug: http://bugs.php.net/bug.php?id=25398
indeed, seems like it, thanks a lot

Feb 1 '07 #3

P: n/a
On Thu, 01 Feb 2007 05:52:29 -0800, Doraj <do****@gmail.comwrote:
>
i'm sorry if it's something known / corrected already, but I haven't
found anything about this yet

It seems that this bug: http://bugs.php.net/bug.php?id=25398

indeed, seems like it, thanks a lot
Does imagefttext (FreeType 2) have the same problem? If your server's
installation supports this function, give it a try. :-)

Good luck

--
Curtis, http://dyersweb.com
Feb 3 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.