ID: 43971 User updated by: raven7370 at yahoo dot com Reported By: raven7370 at yahoo dot com -Status: Feedback +Status: Open Bug Type: GD related Operating System: Linux Debian PHP Version: 5.2.5 New Comment:
Thanks for trying it. My PHP uses FreeType Version 2.1.7 I think you might be right in that it is a package problem and not a php one.The php i use is not standalone but from lampp (linux version of xampp from apache friends). I will try to get the latest snapshot of 5.2 running separately to see if it works then. Otherwise i will try to get someone from apache friends to test it and see if they can reproduce the problem. Previous Comments: ------------------------------------------------------------------------ [2008-01-29 17:34:23] [EMAIL PROTECTED] I can't reproduce it using php 5.2.5 or CVS. If you use the PHP's package from Debian, I fear that I can't help, they do changes that have nothing to do with any libgd versions (that may change once the politics there is over). Can you try it using snapshots. Which freetype version do you use? ------------------------------------------------------------------------ [2008-01-29 17:22:29] raven7370 at yahoo dot com in the reproduce code the angle argument should be 180 such as: imagefttext($image, 21, 180, 256, 256, $color, 'ARIALNB.TTF', 'Hello World'); i copied it quickly while i was still testing. ------------------------------------------------------------------------ [2008-01-29 17:20:42] raven7370 at yahoo dot com Description: ------------ When i use imagefttext such with an angle of 180 i get the error: imagefttext() [function.imagefttext]: Problem rendering glyph With an angle of close to 180 (between 179 and 184.6) but not equal to 180 i do not get an error but the text simply won't be drawn. With an angle between 177 to 179 the text will be drawn but stretched vertically. This problem occurs with almost all windows fonts with a few exceptiosn, those being the Chinese ones (SIMSUN.TTF and PMINGLIU.TTF) With: GD Support enabled GD Version bundled (2.0.34 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.1.7 Reproduce code: --------------- $image = imagecreate(512,512); imagecolorallocate($image,0,0,0); $color = imagecolorallocate($image,255,0,0); imagefttext($image, 21, 176.9, 256, 256, $color, 'ARIALNB.TTF', 'Hello World'); imagegif($image); The font mentioned here is from the windows/fonts directory (just copied directly in the same path as the script) Expected result: ---------------- I expect to see a pictures with hello world written on it upside down. Actual result: -------------- With an angle of 180 the error "imagefttext() [function.imagefttext]: Problem rendering glyph in ..." is thrown, close to 180 the text is either not drawn or is stretched. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43971&edit=1