#42735 [Opn->Asn]: TTF with umlaute's do not work with built-in GD
| From: | tony2001@php.net | Date: | Tue, 02 Oct 2007 10:31:59 +0000 |
| Subject: | #42735 [Opn->Asn]: TTF with umlaute's do not work with built-in GD | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-118069@lists.php.net to get a copy of this message | ||
ID: 42735
Updated by: tony2001@php.net
Reported By: ses at aviaweb dot com
-Status: Open
+Status: Assigned
Bug Type: GD related
Operating System: Linux (centos 4)
PHP Version: 5.2.4
-Assigned To:
+Assigned To: pajoye
Previous Comments:
------------------------------------------------------------------------
[2007-09-22 16:42:30] ses at aviaweb dot com
Description:
------------
This does not appear to work in 5.2.4.
The gd_info() functions reports it's compatible with gd 2.0.34 -
according to the boutelle site this was fixed in 2.0.33
http://www.boutell.com/gd/manual2.0.33.html
(search on umlaute).
This *does* work with the external GD library supplied with the OS
distribution. The external was using php5.2.3 without built-in gd
support (loosing 8 gd functions in the bargin - ouch).
I am testing the following to test:
<?php
header("Content-type: image/png");
$im = imagecreatetruecolor(400, 30);
$white = imagecolorallocate($im, 255, 255, 255);
$black = imagecolorallocate($im, 0, 0, 0);
imagefilledrectangle($im, 0, 0, 399, 29, $white);
$text = 'Umlaute: Ã?öÃO...';
$font = './arial.ttf';
imagettftext($im, 20, 0, 10, 20, $black, $font, $text);
imagepng($im);
imagedestroy($im);
?>
I copied the arial.ttf from my PC.
Thanks,
-Stephanie
Reproduce code:
---------------
<?php
header("Content-type: image/png");
$im = imagecreatetruecolor(400, 30);
$white = imagecolorallocate($im, 255, 255, 255);
$black = imagecolorallocate($im, 0, 0, 0);
imagefilledrectangle($im, 0, 0, 399, 29, $white);
$text = 'Umlaute: Ã?öÃO...';
$font = './arial.ttf';
imagettftext($im, 20, 0, 10, 20, $black, $font, $text);
imagepng($im);
imagedestroy($im);
?>
Expected result:
----------------
I expect to see characters with atleast one that has an umlaute (double
dot about the "o" character).
Actual result:
--------------
group of character "boxes" like usually seen when characters entered do
not have characters defined in the font being used.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42735&edit=1