#30652 [Com]: imagettftext different output os
| From: | news at unleashedmind dot com | Date: | Thu, 08 Nov 2007 11:18:39 +0000 |
| Subject: | #30652 [Com]: imagettftext different output os | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-119355@lists.php.net to get a copy of this message | ||
ID: 30652
Comment by: news at unleashedmind dot com
Reported By: info at paulinternet dot nl
Status: No Feedback
Bug Type: GD related
Operating System: Windows & Linux
PHP Version: 4.3.9
Assigned To: pajoye
New Comment:
I can confirm, this bug exists with PHP 4.* and PHP 5.*. It seems like
fonts on linux miss some anti-aliasing pixels.
Example:
-
http://www.unleashedmind.com/files/php.net-30652-imagettftext-windows.png
-
http://www.unleashedmind.com/files/php.net-30652-imagettftext-linux.png
The given example is scaled down with a factor of 7 (a test to avoid
this bug). Characters in the displayed output size without scaling would
actually be even more "thin" on Linux.
Current phpinfo():
http://www.unleashedmind.com/php.net-30652-phpinfo.php
It does not matter, which font or font type is used. I can reproduce
this bug with TrueType, OpenType and PostScript Type 1 fonts.
Previous Comments:
------------------------------------------------------------------------
[2005-01-27 01:00:04] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2005-01-14 22:18:29] sniper@php.net
The urls do NOT work. Please post working URLS.
------------------------------------------------------------------------
[2004-11-19 16:09:17] info at paulinternet dot nl
The urls in my second post do work.
You can ignore my first post, when I posted it I didn't know the
outputs were different because the server has an other os than my
computer.
------------------------------------------------------------------------
[2004-11-19 11:31:36] pajoye@php.net
Please provide valid URL. These urls (the images) do not work .
--Pierre
------------------------------------------------------------------------
[2004-11-04 19:52:30] info at paulinternet dot nl
Description:
------------
Imagettftext produces different images on Windows and Linux.
I used the Verdana font, but this happends on more(maybe all) fonts.
GD version: bundled (2.0.28 compatible)
Windows output: http://www.paulinternet.nl/php.net/Windows.png
Linux output: http://www.paulinternet.nl/php.net/Linux.png
Verdana font: http://www.paulinternet.nl/php.net/Verdana.ttf
Reproduce code:
---------------
header("Content-type: image/png");
$Image = imagecreate(200, 24);
imagecolorallocate($Image, 0, 0, 0);
$Kleur = imagecolorallocate($Image, 255, 255, 255);
imagettftext($Image, 16, 0, 2, 18, $Kleur,
"Pagina's/Tekst/Verdana.ttf", "I have a problem");
imagepng($Image);
imagedestroy($Image);
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/30652
--
Edit this bug report at http://bugs.php.net/?id=30652&edit=1