Bug #54149 [Opn->Dup]: imagettftext not handling Tibetan letters
Edit report at https://bugs.php.net/bug.php?id=54149&edit=1
ID: 54149
Updated by: cmb@php.net
Reported by: loic at lemconsulting dot fr
Summary: imagettftext not handling Tibetan letters
-Status: Open
+Status: Duplicate
Type: Bug
Package: GD related
Operating System: Debian
PHP Version: 5.3.5
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
This is apparently about combining characters, and as such a
duplicate of bug #34670.
Previous Comments:
------------------------------------------------------------------------
[2011-03-03 12:43:31] loic at lemconsulting dot fr
Description:
------------
---
From manual page: http://www.php.net/function.imagettftext
---
Test script:
---------------
mb_language('uni');
mb_internal_encoding('UTF-8');
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);
// Getting text from url :
$text = $_GET[tib];
$font = 'fonts/tibetanmachine.ttf';
//call to imagettftext
imagettftext($im, 20, 0, 10, 20, $black, $font, $text);
imagepng($im);
imagedestroy($im);
Expected result:
----------------
Expected image displaying a sole Tibetan letter (UTF8) : རà¾à¾±à½²à¼
Actual result:
--------------
Here is an example :
http://www.montibet.com/tib2png.php?tib=%E0%BD%A2%E0%BE%9F%E0%BE%B1%E0%BD%B2%E0%BC%8B
Imagettftext renders some ར༠+ mixed letters from these: à½à¾±à½²à¼
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=54149&edit=1
Thread (2 messages)