From:             ses at aviaweb dot com
Operating system: Linux (centos 4)
PHP version:      5.2.4
PHP Bug Type:     GD related
Bug description:  TTF with umlaute's do not work with built-in GD

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 bug report at http://bugs.php.net/?id=42735&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42735&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42735&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42735&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=42735&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=42735&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=42735&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=42735&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=42735&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=42735&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=42735&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=42735&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=42735&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=42735&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42735&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=42735&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=42735&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=42735&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42735&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=42735&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=42735&r=mysqlcfg

Reply via email to