#34670 [Opn]: imageTTFText for Indian scripts (Devanagari)

From: Date: Wed, 28 Sep 2005 10:49:27 +0000
Subject: #34670 [Opn]: imageTTFText for Indian scripts (Devanagari)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-85703@lists.php.net to get a copy of this message
ID: 34670 Updated by: pajoye@php.net 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" (&#2325;&#2381;&#2340;) 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 ="&#2325;&#2381;&#2340;"; $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 &#2381. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34670&edit=1

« previous php.bugs (#85703) next »