Bug #51571 [Fbk-Opn]: Problems with character spacing in imagettftext/imagefttext
Edit report at http://bugs.php.net/bug.php?id=51571edit=1 ID: 51571 User updated by: leottan at imsweb dot com Reported by: leottan at imsweb dot com Summary: Problems with character spacing in imagettftext/imagefttext -Status: Feedback +Status: Open Type: Bug Package: GD related Operating System: SUSE Ent. Linux v9 SP4 64bit PHP Version: 5.2.13 New Comment: Is this patch included in 5.2.14 RC 1 and if so what is the expected time frame for release? Thank you!! Previous Comments: [2010-06-22 20:36:28] opendevel at weberhofer dot at I have included the patch #51263 (SVN 293268) which solved the problem on my openSUSE/PHP 5.2.13 version. [2010-04-19 16:41:56] paj...@php.net You can install it locally very easily as well or you don't even have to install PHP but simply compile it with GD support and test your script using the freshly built PHP. [2010-04-19 16:36:22] leottan at imsweb dot com Thank you for such a quick response!! Unfortunately, I've been unable to convince our network staff to try a beta version of PHP out on our dev servers. Would you like some snippets of code to try on yours? I feel bad asking you to help me but then not being able to help you. [2010-04-16 17:14:51] paj...@php.net Please try using this snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ [2010-04-16 17:01:15] leottan at imsweb dot com Description: Our dev server was recently upgraded to PHP v5.2.13. With that upgrade we have found that our png images are having kerning/tracking/spacing problems. We've tried numerous fonts and haven't found a good solution yet. imagettftextwithtracking - http://www.php.net/manual/en/function.imagettfbbox.php#51373 - is helping some but still isn't as nice as the old version of PHP was. We are creating images using the GD library and writing text to the images using font files and the imagettftext() or imagefttext() functions. I'm including examples of the new and old tahoma bold. Other fonts (bold and non-bold) have the same problem. Some letters and numbers seem like they're off-center or something like that. Thanks!! Test script: --- ImageTTFText($imFinalImage,13,0,$x,$y, $black,/fonts/tahomabd.ttf,$titleText); //I stripped that down some (taking out vars so you had the basic info) //but that's the format along with our font size font. Expected result: The usual text old PHP v5.2.11 (the words are slightly different because this is our dev server and the other one is the live server) http://yfrog.com/i3goodlp Actual result: -- Messy text new PHP http://yfrog.com/i3badej -- Edit this bug report at http://bugs.php.net/bug.php?id=51571edit=1
Bug #51571 [Fbk-Opn]: Problems with character spacing in imagettftext/imagefttext
Edit report at http://bugs.php.net/bug.php?id=51571edit=1 ID: 51571 User updated by: leottan at imsweb dot com Reported by: leottan at imsweb dot com Summary: Problems with character spacing in imagettftext/imagefttext -Status: Feedback +Status: Open Type: Bug Package: GD related Operating System: SUSE Ent. Linux v9 SP4 64bit PHP Version: 5.2.13 New Comment: Thank you for such a quick response!! Unfortunately, I've been unable to convince our network staff to try a beta version of PHP out on our dev servers. Would you like some snippets of code to try on yours? I feel bad asking you to help me but then not being able to help you. Previous Comments: [2010-04-16 17:14:51] paj...@php.net Please try using this snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ [2010-04-16 17:01:15] leottan at imsweb dot com Description: Our dev server was recently upgraded to PHP v5.2.13. With that upgrade we have found that our png images are having kerning/tracking/spacing problems. We've tried numerous fonts and haven't found a good solution yet. imagettftextwithtracking - http://www.php.net/manual/en/function.imagettfbbox.php#51373 - is helping some but still isn't as nice as the old version of PHP was. We are creating images using the GD library and writing text to the images using font files and the imagettftext() or imagefttext() functions. I'm including examples of the new and old tahoma bold. Other fonts (bold and non-bold) have the same problem. Some letters and numbers seem like they're off-center or something like that. Thanks!! Test script: --- ImageTTFText($imFinalImage,13,0,$x,$y, $black,/fonts/tahomabd.ttf,$titleText); //I stripped that down some (taking out vars so you had the basic info) //but that's the format along with our font size font. Expected result: The usual text old PHP v5.2.11 (the words are slightly different because this is our dev server and the other one is the live server) http://yfrog.com/i3goodlp Actual result: -- Messy text new PHP http://yfrog.com/i3badej -- Edit this bug report at http://bugs.php.net/bug.php?id=51571edit=1
[PHP-BUG] Bug #51571 [NEW]: Problems with character spacing in imagettftext/imagefttext
From: Operating system: SUSE Ent. Linux v9 SP4 64bit PHP version: 5.2.13 Package: GD related Bug Type: Bug Bug description:Problems with character spacing in imagettftext/imagefttext Description: Our dev server was recently upgraded to PHP v5.2.13. With that upgrade we have found that our png images are having kerning/tracking/spacing problems. We've tried numerous fonts and haven't found a good solution yet. imagettftextwithtracking - http://www.php.net/manual/en/function.imagettfbbox.php#51373 - is helping some but still isn't as nice as the old version of PHP was. We are creating images using the GD library and writing text to the images using font files and the imagettftext() or imagefttext() functions. I'm including examples of the new and old tahoma bold. Other fonts (bold and non-bold) have the same problem. Some letters and numbers seem like they're off-center or something like that. Thanks!! Test script: --- ImageTTFText($imFinalImage,13,0,$x,$y, $black,/fonts/tahomabd.ttf,$titleText); //I stripped that down some (taking out vars so you had the basic info) //but that's the format along with our font size font. Expected result: The usual text old PHP v5.2.11 (the words are slightly different because this is our dev server and the other one is the live server) http://yfrog.com/i3goodlp Actual result: -- Messy text new PHP http://yfrog.com/i3badej -- Edit bug report at http://bugs.php.net/bug.php?id=51571edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51571r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51571r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51571r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=51571r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51571r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51571r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51571r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51571r=needscript Try newer version: http://bugs.php.net/fix.php?id=51571r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51571r=support Expected behavior: http://bugs.php.net/fix.php?id=51571r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51571r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51571r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51571r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51571r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=51571r=dst IIS Stability: http://bugs.php.net/fix.php?id=51571r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51571r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51571r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51571r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51571r=mysqlcfg