ID: 34670
Updated by: [EMAIL PROTECTED]
Reported By: klaus at glashoff dot net
Status: Open
Bug Type: *Graphics related
Operating System: Windows XP
PHP Version: 5.0.5
-Assigned To:
+Assigned To: pajoye
New Comment:
Please provide links to:
- the font you use (Sanskrit2003.ttf)
or are you using the font from www.omkarananda-ashram.org?
- expected results (using another program if required)
as images
- actual result as images
Previous Comments:
------------------------------------------------------------------------
[2005-09-28 11:50:56] klaus at glashoff dot net
Description:
------------
The results of imagettftext() are - at least for Indian languages - not
totally satisfying: Consonant conjuncts appear as two consonants with
virama. In order to display "kta" in Devanagari, imagettftext, for
example, when given the argument " k + virama + t"
(क्त) should return the conjunct for "kt", but it
does not.
(Instead of the font Sanskrit2003.ttf, use any Unicode font containing
U+0900 - U+097F; for example mangal.ttf).
Reproduce code:
---------------
<?php
Header ("Content-type: image/png");
$string ="क्त";
$string=rawurldecode($string);
$im = imagecreate (200, 25);
$white = ImageColorAllocate ($im,224,224,224);
$black = ImageColorAllocate ($im,50,100,100);
ImageTTFText ($im, 12, 0, 5, 15, $black, "Sanskrit2003.ttf", $string);
ImagePng ($im);
ImageDestroy ($im);
?>
Expected result:
----------------
The Devanagari conjunct glyph for "kt" should appear, not a separate
"k" with virama sign ्.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34670&edit=1