From: raven7370 at yahoo dot com Operating system: Linux Debian PHP version: 5.2.5 PHP Bug Type: GD related Bug description: imageFTText error with angle = 180
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 bug report at http://bugs.php.net/?id=43971&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43971&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43971&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43971&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43971&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43971&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43971&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43971&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43971&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43971&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43971&r=support Expected behavior: http://bugs.php.net/fix.php?id=43971&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43971&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43971&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43971&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43971&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43971&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43971&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43971&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43971&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43971&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43971&r=mysqlcfg