Bug #54149 [NEW]: imagettftext not handling Tibetan letters
From:
Operating system: Debian
PHP version: 5.3.5
Package: GD related
Bug Type: Bug
Bug description:imagettftext not handling Tibetan letters
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 bug report at http://bugs.php.net/bug.php?id=54149&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54149&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54149&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54149&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=54149&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54149&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=54149&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=54149&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=54149&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=54149&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=54149&r=support
Expected behavior: http://bugs.php.net/fix.php?id=54149&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=54149&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=54149&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=54149&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54149&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=54149&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=54149&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=54149&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=54149&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=54149&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=54149&r=mysqlcfg
Thread (2 messages)
- loic at lemconsulting dot fr